Skip to content

Commit

Permalink
fix: widen context error types
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 27, 2021
1 parent 5299861 commit 00ea6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export interface UnpluginContextMeta extends Partial<RollupContextMeta> {
}

export interface UnpluginContext {
error(message: string | Error): void
warn(message: string | Error): void
error(message: any): void
warn(message: any): void
}

declare module 'webpack' {
Expand Down

0 comments on commit 00ea6d9

Please sign in to comment.