Skip to content

validateTsConfigRaw

This content is not available in your language yet.

validateTsConfigRaw(raw): void

Defined in: shared/index.ts:224

Pre-validates user-supplied tsconfigRaw input.

NAPI (napi_entry.zig / transpile.zig) silently falls back to an empty TsConfig on raw parse failure, so an invalid raw passed through looks to the user as if the option were ignored. Called from both the CLI and JS API entry points so they uniformly throw the same explicit error (failed to parse --tsconfig-raw: ...). No-op when undefined.

string | undefined

void