@depup/vite-plugin-dts 4.5.4-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +37 -0
- package/README.zh-CN.md +417 -0
- package/changes.json +34 -0
- package/dist/index.cjs +1346 -0
- package/dist/index.d.cts +244 -0
- package/dist/index.d.mts +244 -0
- package/dist/index.d.ts +244 -0
- package/dist/index.mjs +1341 -0
- package/package.json +153 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import * as vite from 'vite';
|
|
2
|
+
import { LogLevel } from 'vite';
|
|
3
|
+
import ts from 'typescript';
|
|
4
|
+
import { IExtractorInvokeOptions, ExtractorResult, IExtractorConfigPrepareOptions } from '@microsoft/api-extractor';
|
|
5
|
+
|
|
6
|
+
type MaybePromise<T> = T | Promise<T>;
|
|
7
|
+
type RollupConfig = Omit<IExtractorConfigPrepareOptions['configObject'], 'projectFolder' | 'mainEntryPointFilePath' | 'compiler' | 'dtsRollup'>;
|
|
8
|
+
interface Resolver {
|
|
9
|
+
/**
|
|
10
|
+
* The name of the resolver
|
|
11
|
+
*
|
|
12
|
+
* The later resolver with the same name will overwrite the earlier
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Determine whether the resolver supports the file
|
|
17
|
+
*/
|
|
18
|
+
supports: (id: string) => void | boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Transform source to declaration files
|
|
21
|
+
*
|
|
22
|
+
* Note that the path of the returns should base on `outDir`, or relative path to `root`
|
|
23
|
+
*/
|
|
24
|
+
transform: (payload: {
|
|
25
|
+
id: string;
|
|
26
|
+
code: string;
|
|
27
|
+
root: string;
|
|
28
|
+
outDir: string;
|
|
29
|
+
host: ts.CompilerHost;
|
|
30
|
+
program: ts.Program;
|
|
31
|
+
}) => MaybePromise<{
|
|
32
|
+
outputs: {
|
|
33
|
+
path: string;
|
|
34
|
+
content: string;
|
|
35
|
+
}[];
|
|
36
|
+
emitSkipped?: boolean;
|
|
37
|
+
diagnostics?: readonly ts.Diagnostic[];
|
|
38
|
+
} | {
|
|
39
|
+
path: string;
|
|
40
|
+
content: string;
|
|
41
|
+
}[]>;
|
|
42
|
+
}
|
|
43
|
+
interface PluginOptions {
|
|
44
|
+
/**
|
|
45
|
+
* Specify root directory.
|
|
46
|
+
*
|
|
47
|
+
* Defaults to the 'root' of the Vite config, or `process.cwd()` if using Rollup.
|
|
48
|
+
*/
|
|
49
|
+
root?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Output directory for declaration files.
|
|
52
|
+
*
|
|
53
|
+
* Can be an array to output to multiple directories.
|
|
54
|
+
*
|
|
55
|
+
* Defaults to 'build.outDir' of the Vite config, or `outDir` of tsconfig.json if using Rollup.
|
|
56
|
+
*/
|
|
57
|
+
outDir?: string | string[];
|
|
58
|
+
/**
|
|
59
|
+
* Override root path of entry files (useful in monorepos).
|
|
60
|
+
*
|
|
61
|
+
* The output path of each file will be calculated based on the value provided.
|
|
62
|
+
*
|
|
63
|
+
* The default is the smallest public path for all source files.
|
|
64
|
+
*/
|
|
65
|
+
entryRoot?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Restrict declaration files output to `outDir`.
|
|
68
|
+
*
|
|
69
|
+
* If true, generated declaration files outside `outDir` will be ignored.
|
|
70
|
+
*
|
|
71
|
+
* @default true
|
|
72
|
+
*/
|
|
73
|
+
strictOutput?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Override compilerOptions.
|
|
76
|
+
*
|
|
77
|
+
* @default null
|
|
78
|
+
*/
|
|
79
|
+
compilerOptions?: ts.CompilerOptions | null;
|
|
80
|
+
/**
|
|
81
|
+
* Specify tsconfig.json path.
|
|
82
|
+
*
|
|
83
|
+
* Plugin resolves `include` and `exclude` globs from tsconfig.json.
|
|
84
|
+
*
|
|
85
|
+
* If not specified, plugin will find config file from root.
|
|
86
|
+
*/
|
|
87
|
+
tsconfigPath?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Specify custom resolvers.
|
|
90
|
+
*
|
|
91
|
+
* @default []
|
|
92
|
+
*/
|
|
93
|
+
resolvers?: Resolver[];
|
|
94
|
+
/**
|
|
95
|
+
* Parsing `paths` of tsconfig.json to aliases.
|
|
96
|
+
*
|
|
97
|
+
* Note that these aliases only use for declaration files.
|
|
98
|
+
*
|
|
99
|
+
* @default true
|
|
100
|
+
* @remarks Only use first replacement of each path.
|
|
101
|
+
*/
|
|
102
|
+
pathsToAliases?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Set which paths should be excluded when transforming aliases.
|
|
105
|
+
*
|
|
106
|
+
* @default []
|
|
107
|
+
*/
|
|
108
|
+
aliasesExclude?: (string | RegExp)[];
|
|
109
|
+
/**
|
|
110
|
+
* Whether to transform file names ending in '.vue.d.ts' to '.d.ts'.
|
|
111
|
+
*
|
|
112
|
+
* If there is a duplicate name after transform, it will fall back to the original name.
|
|
113
|
+
*
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
cleanVueFileName?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Whether to transform dynamic imports to static (eg `import('vue').DefineComponent` to `import { DefineComponent } from 'vue'`).
|
|
119
|
+
*
|
|
120
|
+
* Value is forced to `true` when `rollupTypes` is `true`.
|
|
121
|
+
*
|
|
122
|
+
* @default false
|
|
123
|
+
*/
|
|
124
|
+
staticImport?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Override `include` glob (relative to root).
|
|
127
|
+
*
|
|
128
|
+
* Defaults to `include` property of tsconfig.json (relative to tsconfig.json located).
|
|
129
|
+
*/
|
|
130
|
+
include?: string | string[];
|
|
131
|
+
/**
|
|
132
|
+
* Override `exclude` glob.
|
|
133
|
+
*
|
|
134
|
+
* Defaults to `exclude` property of tsconfig.json or `'node_modules/**'` if not supplied.
|
|
135
|
+
*/
|
|
136
|
+
exclude?: string | string[];
|
|
137
|
+
/**
|
|
138
|
+
* Whether to remove `import 'xxx'`.
|
|
139
|
+
*
|
|
140
|
+
* @default true
|
|
141
|
+
*/
|
|
142
|
+
clearPureImport?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Whether to generate types entry file(s).
|
|
145
|
+
*
|
|
146
|
+
* When `true`, uses package.json `types` property if it exists or `${outDir}/index.d.ts`.
|
|
147
|
+
*
|
|
148
|
+
* Value is forced to `true` when `rollupTypes` is `true`.
|
|
149
|
+
*
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
insertTypesEntry?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Rollup type declaration files after emitting them.
|
|
155
|
+
*
|
|
156
|
+
* Powered by `@microsoft/api-extractor` - time-intensive operation.
|
|
157
|
+
*
|
|
158
|
+
* @default false
|
|
159
|
+
*/
|
|
160
|
+
rollupTypes?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Bundled packages for `@microsoft/api-extractor`.
|
|
163
|
+
*
|
|
164
|
+
* @default []
|
|
165
|
+
* @see https://api-extractor.com/pages/configs/api-extractor_json/#bundledpackages
|
|
166
|
+
*/
|
|
167
|
+
bundledPackages?: string[];
|
|
168
|
+
/**
|
|
169
|
+
* Override the config of `@microsoft/api-extractor`.
|
|
170
|
+
*
|
|
171
|
+
* @default null
|
|
172
|
+
* @see https://api-extractor.com/pages/setup/configure_api_report/
|
|
173
|
+
*/
|
|
174
|
+
rollupConfig?: RollupConfig;
|
|
175
|
+
/**
|
|
176
|
+
* Override the invoke options of `@microsoft/api-extractor`.
|
|
177
|
+
*
|
|
178
|
+
* @default null
|
|
179
|
+
* @see https://api-extractor.com/pages/setup/invoking/#invoking-from-a-build-script
|
|
180
|
+
*/
|
|
181
|
+
rollupOptions?: IExtractorInvokeOptions;
|
|
182
|
+
/**
|
|
183
|
+
* Whether to copy .d.ts source files to `outDir`.
|
|
184
|
+
*
|
|
185
|
+
* @default false
|
|
186
|
+
* @remarks Before 2.0, the default was `true`.
|
|
187
|
+
*/
|
|
188
|
+
copyDtsFiles?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Whether to emit declaration files only.
|
|
191
|
+
*
|
|
192
|
+
* When `true`, all the original outputs of vite (rollup) will be force removed.
|
|
193
|
+
*
|
|
194
|
+
* @default false
|
|
195
|
+
*/
|
|
196
|
+
declarationOnly?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Logging level for this plugin.
|
|
199
|
+
*
|
|
200
|
+
* Defaults to the 'logLevel' property of your Vite config.
|
|
201
|
+
*/
|
|
202
|
+
logLevel?: LogLevel;
|
|
203
|
+
/**
|
|
204
|
+
* Hook called after diagnostic is emitted.
|
|
205
|
+
*
|
|
206
|
+
* According to the `diagnostics.length`, you can judge whether there is any type error.
|
|
207
|
+
*
|
|
208
|
+
* @default () => {}
|
|
209
|
+
*/
|
|
210
|
+
afterDiagnostic?: (diagnostics: readonly ts.Diagnostic[]) => MaybePromise<void>;
|
|
211
|
+
/**
|
|
212
|
+
* Hook called prior to writing each declaration file.
|
|
213
|
+
*
|
|
214
|
+
* This allows you to transform the path or content.
|
|
215
|
+
*
|
|
216
|
+
* The file will be skipped when the return value `false` or `Promise<false>`.
|
|
217
|
+
*
|
|
218
|
+
* @default () => {}
|
|
219
|
+
*/
|
|
220
|
+
beforeWriteFile?: (filePath: string, content: string) => MaybePromise<void | false | {
|
|
221
|
+
filePath?: string;
|
|
222
|
+
content?: string;
|
|
223
|
+
}>;
|
|
224
|
+
/**
|
|
225
|
+
* Hook called after rolling up declaration files.
|
|
226
|
+
*
|
|
227
|
+
* @default () => {}
|
|
228
|
+
*/
|
|
229
|
+
afterRollup?: (result: ExtractorResult) => MaybePromise<void>;
|
|
230
|
+
/**
|
|
231
|
+
* Hook called after all declaration files are written.
|
|
232
|
+
*
|
|
233
|
+
* It will be received a map (path -> content) that records those emitted files.
|
|
234
|
+
*
|
|
235
|
+
* @default () => {}
|
|
236
|
+
*/
|
|
237
|
+
afterBuild?: (emittedFiles: Map<string, string>) => MaybePromise<void>;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare function dtsPlugin(options?: PluginOptions): vite.Plugin;
|
|
241
|
+
|
|
242
|
+
declare function editSourceMapDir(content: string, fromDir: string, toDir: string): string | boolean;
|
|
243
|
+
|
|
244
|
+
export { type PluginOptions, dtsPlugin as default, editSourceMapDir };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import * as vite from 'vite';
|
|
2
|
+
import { LogLevel } from 'vite';
|
|
3
|
+
import ts from 'typescript';
|
|
4
|
+
import { IExtractorInvokeOptions, ExtractorResult, IExtractorConfigPrepareOptions } from '@microsoft/api-extractor';
|
|
5
|
+
|
|
6
|
+
type MaybePromise<T> = T | Promise<T>;
|
|
7
|
+
type RollupConfig = Omit<IExtractorConfigPrepareOptions['configObject'], 'projectFolder' | 'mainEntryPointFilePath' | 'compiler' | 'dtsRollup'>;
|
|
8
|
+
interface Resolver {
|
|
9
|
+
/**
|
|
10
|
+
* The name of the resolver
|
|
11
|
+
*
|
|
12
|
+
* The later resolver with the same name will overwrite the earlier
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Determine whether the resolver supports the file
|
|
17
|
+
*/
|
|
18
|
+
supports: (id: string) => void | boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Transform source to declaration files
|
|
21
|
+
*
|
|
22
|
+
* Note that the path of the returns should base on `outDir`, or relative path to `root`
|
|
23
|
+
*/
|
|
24
|
+
transform: (payload: {
|
|
25
|
+
id: string;
|
|
26
|
+
code: string;
|
|
27
|
+
root: string;
|
|
28
|
+
outDir: string;
|
|
29
|
+
host: ts.CompilerHost;
|
|
30
|
+
program: ts.Program;
|
|
31
|
+
}) => MaybePromise<{
|
|
32
|
+
outputs: {
|
|
33
|
+
path: string;
|
|
34
|
+
content: string;
|
|
35
|
+
}[];
|
|
36
|
+
emitSkipped?: boolean;
|
|
37
|
+
diagnostics?: readonly ts.Diagnostic[];
|
|
38
|
+
} | {
|
|
39
|
+
path: string;
|
|
40
|
+
content: string;
|
|
41
|
+
}[]>;
|
|
42
|
+
}
|
|
43
|
+
interface PluginOptions {
|
|
44
|
+
/**
|
|
45
|
+
* Specify root directory.
|
|
46
|
+
*
|
|
47
|
+
* Defaults to the 'root' of the Vite config, or `process.cwd()` if using Rollup.
|
|
48
|
+
*/
|
|
49
|
+
root?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Output directory for declaration files.
|
|
52
|
+
*
|
|
53
|
+
* Can be an array to output to multiple directories.
|
|
54
|
+
*
|
|
55
|
+
* Defaults to 'build.outDir' of the Vite config, or `outDir` of tsconfig.json if using Rollup.
|
|
56
|
+
*/
|
|
57
|
+
outDir?: string | string[];
|
|
58
|
+
/**
|
|
59
|
+
* Override root path of entry files (useful in monorepos).
|
|
60
|
+
*
|
|
61
|
+
* The output path of each file will be calculated based on the value provided.
|
|
62
|
+
*
|
|
63
|
+
* The default is the smallest public path for all source files.
|
|
64
|
+
*/
|
|
65
|
+
entryRoot?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Restrict declaration files output to `outDir`.
|
|
68
|
+
*
|
|
69
|
+
* If true, generated declaration files outside `outDir` will be ignored.
|
|
70
|
+
*
|
|
71
|
+
* @default true
|
|
72
|
+
*/
|
|
73
|
+
strictOutput?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Override compilerOptions.
|
|
76
|
+
*
|
|
77
|
+
* @default null
|
|
78
|
+
*/
|
|
79
|
+
compilerOptions?: ts.CompilerOptions | null;
|
|
80
|
+
/**
|
|
81
|
+
* Specify tsconfig.json path.
|
|
82
|
+
*
|
|
83
|
+
* Plugin resolves `include` and `exclude` globs from tsconfig.json.
|
|
84
|
+
*
|
|
85
|
+
* If not specified, plugin will find config file from root.
|
|
86
|
+
*/
|
|
87
|
+
tsconfigPath?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Specify custom resolvers.
|
|
90
|
+
*
|
|
91
|
+
* @default []
|
|
92
|
+
*/
|
|
93
|
+
resolvers?: Resolver[];
|
|
94
|
+
/**
|
|
95
|
+
* Parsing `paths` of tsconfig.json to aliases.
|
|
96
|
+
*
|
|
97
|
+
* Note that these aliases only use for declaration files.
|
|
98
|
+
*
|
|
99
|
+
* @default true
|
|
100
|
+
* @remarks Only use first replacement of each path.
|
|
101
|
+
*/
|
|
102
|
+
pathsToAliases?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Set which paths should be excluded when transforming aliases.
|
|
105
|
+
*
|
|
106
|
+
* @default []
|
|
107
|
+
*/
|
|
108
|
+
aliasesExclude?: (string | RegExp)[];
|
|
109
|
+
/**
|
|
110
|
+
* Whether to transform file names ending in '.vue.d.ts' to '.d.ts'.
|
|
111
|
+
*
|
|
112
|
+
* If there is a duplicate name after transform, it will fall back to the original name.
|
|
113
|
+
*
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
cleanVueFileName?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Whether to transform dynamic imports to static (eg `import('vue').DefineComponent` to `import { DefineComponent } from 'vue'`).
|
|
119
|
+
*
|
|
120
|
+
* Value is forced to `true` when `rollupTypes` is `true`.
|
|
121
|
+
*
|
|
122
|
+
* @default false
|
|
123
|
+
*/
|
|
124
|
+
staticImport?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Override `include` glob (relative to root).
|
|
127
|
+
*
|
|
128
|
+
* Defaults to `include` property of tsconfig.json (relative to tsconfig.json located).
|
|
129
|
+
*/
|
|
130
|
+
include?: string | string[];
|
|
131
|
+
/**
|
|
132
|
+
* Override `exclude` glob.
|
|
133
|
+
*
|
|
134
|
+
* Defaults to `exclude` property of tsconfig.json or `'node_modules/**'` if not supplied.
|
|
135
|
+
*/
|
|
136
|
+
exclude?: string | string[];
|
|
137
|
+
/**
|
|
138
|
+
* Whether to remove `import 'xxx'`.
|
|
139
|
+
*
|
|
140
|
+
* @default true
|
|
141
|
+
*/
|
|
142
|
+
clearPureImport?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Whether to generate types entry file(s).
|
|
145
|
+
*
|
|
146
|
+
* When `true`, uses package.json `types` property if it exists or `${outDir}/index.d.ts`.
|
|
147
|
+
*
|
|
148
|
+
* Value is forced to `true` when `rollupTypes` is `true`.
|
|
149
|
+
*
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
insertTypesEntry?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Rollup type declaration files after emitting them.
|
|
155
|
+
*
|
|
156
|
+
* Powered by `@microsoft/api-extractor` - time-intensive operation.
|
|
157
|
+
*
|
|
158
|
+
* @default false
|
|
159
|
+
*/
|
|
160
|
+
rollupTypes?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Bundled packages for `@microsoft/api-extractor`.
|
|
163
|
+
*
|
|
164
|
+
* @default []
|
|
165
|
+
* @see https://api-extractor.com/pages/configs/api-extractor_json/#bundledpackages
|
|
166
|
+
*/
|
|
167
|
+
bundledPackages?: string[];
|
|
168
|
+
/**
|
|
169
|
+
* Override the config of `@microsoft/api-extractor`.
|
|
170
|
+
*
|
|
171
|
+
* @default null
|
|
172
|
+
* @see https://api-extractor.com/pages/setup/configure_api_report/
|
|
173
|
+
*/
|
|
174
|
+
rollupConfig?: RollupConfig;
|
|
175
|
+
/**
|
|
176
|
+
* Override the invoke options of `@microsoft/api-extractor`.
|
|
177
|
+
*
|
|
178
|
+
* @default null
|
|
179
|
+
* @see https://api-extractor.com/pages/setup/invoking/#invoking-from-a-build-script
|
|
180
|
+
*/
|
|
181
|
+
rollupOptions?: IExtractorInvokeOptions;
|
|
182
|
+
/**
|
|
183
|
+
* Whether to copy .d.ts source files to `outDir`.
|
|
184
|
+
*
|
|
185
|
+
* @default false
|
|
186
|
+
* @remarks Before 2.0, the default was `true`.
|
|
187
|
+
*/
|
|
188
|
+
copyDtsFiles?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Whether to emit declaration files only.
|
|
191
|
+
*
|
|
192
|
+
* When `true`, all the original outputs of vite (rollup) will be force removed.
|
|
193
|
+
*
|
|
194
|
+
* @default false
|
|
195
|
+
*/
|
|
196
|
+
declarationOnly?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Logging level for this plugin.
|
|
199
|
+
*
|
|
200
|
+
* Defaults to the 'logLevel' property of your Vite config.
|
|
201
|
+
*/
|
|
202
|
+
logLevel?: LogLevel;
|
|
203
|
+
/**
|
|
204
|
+
* Hook called after diagnostic is emitted.
|
|
205
|
+
*
|
|
206
|
+
* According to the `diagnostics.length`, you can judge whether there is any type error.
|
|
207
|
+
*
|
|
208
|
+
* @default () => {}
|
|
209
|
+
*/
|
|
210
|
+
afterDiagnostic?: (diagnostics: readonly ts.Diagnostic[]) => MaybePromise<void>;
|
|
211
|
+
/**
|
|
212
|
+
* Hook called prior to writing each declaration file.
|
|
213
|
+
*
|
|
214
|
+
* This allows you to transform the path or content.
|
|
215
|
+
*
|
|
216
|
+
* The file will be skipped when the return value `false` or `Promise<false>`.
|
|
217
|
+
*
|
|
218
|
+
* @default () => {}
|
|
219
|
+
*/
|
|
220
|
+
beforeWriteFile?: (filePath: string, content: string) => MaybePromise<void | false | {
|
|
221
|
+
filePath?: string;
|
|
222
|
+
content?: string;
|
|
223
|
+
}>;
|
|
224
|
+
/**
|
|
225
|
+
* Hook called after rolling up declaration files.
|
|
226
|
+
*
|
|
227
|
+
* @default () => {}
|
|
228
|
+
*/
|
|
229
|
+
afterRollup?: (result: ExtractorResult) => MaybePromise<void>;
|
|
230
|
+
/**
|
|
231
|
+
* Hook called after all declaration files are written.
|
|
232
|
+
*
|
|
233
|
+
* It will be received a map (path -> content) that records those emitted files.
|
|
234
|
+
*
|
|
235
|
+
* @default () => {}
|
|
236
|
+
*/
|
|
237
|
+
afterBuild?: (emittedFiles: Map<string, string>) => MaybePromise<void>;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare function dtsPlugin(options?: PluginOptions): vite.Plugin;
|
|
241
|
+
|
|
242
|
+
declare function editSourceMapDir(content: string, fromDir: string, toDir: string): string | boolean;
|
|
243
|
+
|
|
244
|
+
export { type PluginOptions, dtsPlugin as default, editSourceMapDir };
|