Skip to content

Commit

Permalink
fix: types for load hook
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 26, 2021
1 parent 0e431c7 commit 01a9364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface UnpluginOptions {
enforce?: 'post' | 'pre' | undefined;
transformInclude?: (id: string) => boolean;
transform?: (this: UnpluginContext, code: string, id: string) => Thenable<string | { code: string; map: any; } | null | undefined>;
load?: (this: UnpluginContext, id?:string) => Thenable<string | null | undefined>
load?: (this: UnpluginContext, id: string) => Thenable<string | null | undefined>
resolveId?: (id: string, importer?: string) => Thenable<string | null | undefined>

// framework specify extends
Expand Down

0 comments on commit 01a9364

Please sign in to comment.