Skip to content

Commit

Permalink
Exports tsconfigRaw types (#3290)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-kinokon authored Aug 6, 2023
1 parent 3f4ed76 commit dd2f047
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions lib/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,25 @@ interface CommonOptions {
logOverride?: Record<string, LogLevel>

/** Documentation: https://esbuild.github.io/api/#tsconfig-raw */
tsconfigRaw?: string | {
compilerOptions?: {
alwaysStrict?: boolean
baseUrl?: boolean
experimentalDecorators?: boolean
importsNotUsedAsValues?: 'remove' | 'preserve' | 'error'
jsx?: 'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev'
jsxFactory?: string
jsxFragmentFactory?: string
jsxImportSource?: string
paths?: Record<string, string[]>
preserveValueImports?: boolean
strict?: boolean
target?: string
useDefineForClassFields?: boolean
verbatimModuleSyntax?: boolean
}
tsconfigRaw?: string | TsconfigRaw
}

export interface TsconfigRaw {
compilerOptions?: {
alwaysStrict?: boolean
baseUrl?: boolean
experimentalDecorators?: boolean
importsNotUsedAsValues?: 'remove' | 'preserve' | 'error'
jsx?: 'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev'
jsxFactory?: string
jsxFragmentFactory?: string
jsxImportSource?: string
paths?: Record<string, string[]>
preserveValueImports?: boolean
strict?: boolean
target?: string
useDefineForClassFields?: boolean
verbatimModuleSyntax?: boolean
}
}

Expand Down

0 comments on commit dd2f047

Please sign in to comment.