Skip to content

Commit

Permalink
chore: update node/index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jan 11, 2024
1 parent 9f8f15d commit 2591570
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/node/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
/* auto-generated by NAPI-RS */

export interface JsHooks {
onCompileLess?: (filePath: string) => Promise<string>;
onBuildComplete?: (data: {
load?: (
filePath: string,
) => Promise<{ content: string; type: 'css' | 'javascript' }>;
generateEnd?: (data: {
isFirstCompile: boolean;
time: number;
stats: {
Expand All @@ -14,6 +16,7 @@ export interface JsHooks {
};
}) => void;
onGenerateFile?: (path: string, content: Buffer) => Promise<void>;
buildStart?: () => Promise<void>;
}
export interface BuildParams {
root: string;
Expand Down

0 comments on commit 2591570

Please sign in to comment.