From dd2f0472a53532619018e01c34bc676f2e99a9cb Mon Sep 17 00:00:00 2001 From: Alex <8125011+alex-kinokon@users.noreply.github.com> Date: Sun, 6 Aug 2023 16:00:21 -0400 Subject: [PATCH] Exports tsconfigRaw types (#3290) --- lib/shared/types.ts | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/lib/shared/types.ts b/lib/shared/types.ts index 48c99c1f6a5..4c001443a76 100644 --- a/lib/shared/types.ts +++ b/lib/shared/types.ts @@ -85,23 +85,25 @@ interface CommonOptions { logOverride?: Record /** 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 - 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 + preserveValueImports?: boolean + strict?: boolean + target?: string + useDefineForClassFields?: boolean + verbatimModuleSyntax?: boolean } }