Skip to content

Commit b3d6865

Browse files
committedMar 29, 2023
type(core): fix type errors.
1 parent 95b8981 commit b3d6865

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎packages/typescript/src/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import ts from 'typescript';
22
import path from 'node:path';
3+
import fs from 'fs-extra';
34
import {
45
writeFile,
56
getSourceFile,
@@ -27,6 +28,13 @@ export interface CopyFilesOptions {
2728
* @example ['src', 'demo']
2829
*/
2930
rootDirsRelative?: string[];
31+
onFilesChange?: (
32+
eventName: 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir',
33+
path: string,
34+
stats?: fs.Stats,
35+
) => void;
36+
onError?: (error: any) => void;
37+
onReady?: () => void;
3038
}
3139

3240
export interface TsCompileOptions {

0 commit comments

Comments
 (0)
Please sign in to comment.