Skip to content

Commit

Permalink
type(core): fix type errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 29, 2023
1 parent 95b8981 commit b3d6865
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/typescript/src/index.ts
@@ -1,5 +1,6 @@
import ts from 'typescript';
import path from 'node:path';
import fs from 'fs-extra';
import {
writeFile,
getSourceFile,
Expand Down Expand Up @@ -27,6 +28,13 @@ export interface CopyFilesOptions {
* @example ['src', 'demo']
*/
rootDirsRelative?: string[];
onFilesChange?: (
eventName: 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir',
path: string,
stats?: fs.Stats,
) => void;
onError?: (error: any) => void;
onReady?: () => void;
}

export interface TsCompileOptions {
Expand Down

0 comments on commit b3d6865

Please sign in to comment.