Skip to content

Commit

Permalink
fix: hooks type in config should be partial
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 3, 2021
1 parent 31ab840 commit 62fd953
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 @@ -60,7 +60,7 @@ export interface BuildContext {
export interface BuildConfig extends Partial<Omit<BuildOptions, 'entries'>> {
entries?: (BuildEntry | string)[]
preset?: string | BuildConfig
hooks?: BuildHooks // eslint-disable-line no-use-before-define
hooks?: Partial<BuildHooks> // eslint-disable-line no-use-before-define
}

export interface UntypedOutput { fileName: string, contents: string }
Expand Down

0 comments on commit 62fd953

Please sign in to comment.