|
1 | 1 | { |
2 | | - "context-!~{002}~.d.mts": { |
| 2 | + "context-!~{003}~.d.mts": { |
3 | 3 | "createContext": "declare function createContext(): TscContext", |
4 | 4 | "globalContext": "TscContext", |
5 | 5 | "invalidateContextFile": "declare function invalidateContextFile(_: TscContext, _: string): void", |
6 | 6 | "ParsedProject": "interface ParsedProject {\n tsconfigPath: string\n parsedConfig: ts.ParsedCommandLine\n}", |
7 | 7 | "SourceFileToProjectMap": "type SourceFileToProjectMap = Map<string, ParsedProject>", |
8 | 8 | "TscContext": "interface TscContext {\n programs: ts.Program[]\n files: Map<string, string>\n projects: Map<string, SourceFileToProjectMap>\n}" |
9 | 9 | }, |
10 | | - "filename.d.mts": { |
| 10 | + "index-!~{004}~.d.mts": { |
| 11 | + "tscEmit": "declare function tscEmit(_: TscOptions): TscResult", |
| 12 | + "TscModule": "interface TscModule {\n program: ts.Program\n file: ts.SourceFile\n}", |
| 13 | + "TscOptions": "interface TscOptions {\n tsconfig?: string\n tsconfigRaw: TsConfigJson\n cwd: string\n build: boolean\n incremental: boolean\n entries?: string[]\n id: string\n sourcemap: boolean\n vue?: boolean\n tsMacro?: boolean\n context?: TscContext\n}", |
| 14 | + "TscResult": "interface TscResult {\n code?: string\n map?: SourceMapInput\n error?: string\n}" |
| 15 | + }, |
| 16 | + "index.d.mts": { |
| 17 | + "createFakeJsPlugin": "declare function createFakeJsPlugin(_: Pick<OptionsResolved, 'sourcemap' | 'cjsDefault' | 'sideEffects'>): Plugin", |
| 18 | + "createGeneratePlugin": "declare function createGeneratePlugin(_: Pick<OptionsResolved, 'cwd' | 'tsconfig' | 'tsconfigRaw' | 'build' | 'incremental' | 'oxc' | 'emitDtsOnly' | 'vue' | 'tsMacro' | 'parallel' | 'eager' | 'tsgo' | 'newContext' | 'emitJs' | 'sourcemap'>): Plugin", |
| 19 | + "dts": "declare function dts(_: Options): Plugin[]", |
| 20 | + "GeneralOptions": "interface GeneralOptions {\n cwd?: string\n dtsInput?: boolean\n emitDtsOnly?: boolean\n tsconfig?: string | boolean\n tsconfigRaw?: Omit<TsConfigJson, 'compilerOptions'>\n compilerOptions?: TsConfigJson.CompilerOptions\n sourcemap?: boolean\n resolver?: 'oxc' | 'tsc'\n cjsDefault?: boolean\n sideEffects?: boolean\n}", |
| 21 | + "Options": "interface Options extends GeneralOptions, TscOptions {\n oxc?: boolean | Omit<IsolatedDeclarationsOptions, 'sourcemap'>\n tsgo?: boolean | TsgoOptions\n}", |
| 22 | + "OptionsResolved": "type OptionsResolved = Overwrite<Required<Omit<Options, 'compilerOptions'>>, { tsconfig?: string; oxc: IsolatedDeclarationsOptions | false; tsconfigRaw: TsConfigJson; tsgo: Omit<TsgoOptions, 'enabled'> | false }>", |
| 23 | + "Overwrite": "type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U", |
| 24 | + "resolveOptions": "declare function resolveOptions(_: Options): OptionsResolved", |
| 25 | + "TscOptions": "interface TscOptions {\n build?: boolean\n incremental?: boolean\n vue?: boolean\n tsMacro?: boolean\n parallel?: boolean\n eager?: boolean\n newContext?: boolean\n emitJs?: boolean\n}", |
| 26 | + "TsgoOptions": "interface TsgoOptions {\n enabled?: boolean\n path?: string\n}", |
| 27 | + "#exports": [ |
| 28 | + "Options", |
| 29 | + "createFakeJsPlugin", |
| 30 | + "createGeneratePlugin", |
| 31 | + "dts", |
| 32 | + "resolveOptions" |
| 33 | + ] |
| 34 | + }, |
| 35 | + "internal.d.mts": { |
11 | 36 | "filename_dts_to": "declare function filename_dts_to(_: string, _: 'js' | 'ts'): string", |
12 | 37 | "filename_js_to_dts": "declare function filename_js_to_dts(_: string): string", |
13 | 38 | "filename_to_dts": "declare function filename_to_dts(_: string): string", |
|
35 | 60 | "filename_dts_to", |
36 | 61 | "filename_js_to_dts", |
37 | 62 | "filename_to_dts", |
| 63 | + "parseTsconfig", |
38 | 64 | "replaceTemplateName", |
39 | 65 | "resolveTemplateFn" |
40 | 66 | ] |
41 | 67 | }, |
42 | | - "index-!~{003}~.d.mts": { |
43 | | - "tscEmit": "declare function tscEmit(_: TscOptions): TscResult", |
44 | | - "TscModule": "interface TscModule {\n program: ts.Program\n file: ts.SourceFile\n}", |
45 | | - "TscOptions": "interface TscOptions {\n tsconfig?: string\n tsconfigRaw: TsConfigJson\n cwd: string\n build: boolean\n incremental: boolean\n entries?: string[]\n id: string\n sourcemap: boolean\n vue?: boolean\n tsMacro?: boolean\n context?: TscContext\n}", |
46 | | - "TscResult": "interface TscResult {\n code?: string\n map?: SourceMapInput\n error?: string\n}" |
47 | | - }, |
48 | | - "index.d.mts": { |
49 | | - "createFakeJsPlugin": "declare function createFakeJsPlugin(_: Pick<OptionsResolved, 'sourcemap' | 'cjsDefault' | 'sideEffects'>): Plugin", |
50 | | - "createGeneratePlugin": "declare function createGeneratePlugin(_: Pick<OptionsResolved, 'cwd' | 'tsconfig' | 'tsconfigRaw' | 'build' | 'incremental' | 'oxc' | 'emitDtsOnly' | 'vue' | 'tsMacro' | 'parallel' | 'eager' | 'tsgo' | 'newContext' | 'emitJs' | 'sourcemap'>): Plugin", |
51 | | - "dts": "declare function dts(_: Options): Plugin[]", |
52 | | - "GeneralOptions": "interface GeneralOptions {\n cwd?: string\n dtsInput?: boolean\n emitDtsOnly?: boolean\n tsconfig?: string | boolean\n tsconfigRaw?: Omit<TsConfigJson, 'compilerOptions'>\n compilerOptions?: TsConfigJson.CompilerOptions\n sourcemap?: boolean\n resolver?: 'oxc' | 'tsc'\n cjsDefault?: boolean\n sideEffects?: boolean\n}", |
53 | | - "Options": "interface Options extends GeneralOptions, TscOptions {\n oxc?: boolean | Omit<IsolatedDeclarationsOptions, 'sourcemap'>\n tsgo?: boolean | TsgoOptions\n}", |
54 | | - "OptionsResolved": "type OptionsResolved = Overwrite<Required<Omit<Options, 'compilerOptions'>>, { tsconfig?: string; oxc: IsolatedDeclarationsOptions | false; tsconfigRaw: TsConfigJson; tsgo: Omit<TsgoOptions, 'enabled'> | false }>", |
55 | | - "Overwrite": "type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U", |
56 | | - "resolveOptions": "declare function resolveOptions(_: Options): OptionsResolved", |
57 | | - "TscOptions": "interface TscOptions {\n build?: boolean\n incremental?: boolean\n vue?: boolean\n tsMacro?: boolean\n parallel?: boolean\n eager?: boolean\n newContext?: boolean\n emitJs?: boolean\n}", |
58 | | - "TsgoOptions": "interface TsgoOptions {\n enabled?: boolean\n path?: string\n}", |
59 | | - "#exports": [ |
60 | | - "Options", |
61 | | - "createFakeJsPlugin", |
62 | | - "createGeneratePlugin", |
63 | | - "dts", |
64 | | - "resolveOptions" |
65 | | - ] |
66 | | - }, |
67 | 68 | "tsc-context.d.mts": { |
68 | 69 | "#exports": [ |
69 | 70 | "ParsedProject", |
|
0 commit comments