Skip to content

Commit

Permalink
Fixed Buffer type error with @type/node v16 typings (#45).
Browse files Browse the repository at this point in the history
  • Loading branch information
dmester committed Aug 14, 2021
1 parent 6d0543a commit 2e77f53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion types/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ interface Element { }
// By declaring Buffer without including the Node typings, we can avoid type issues related to differences
// between Node and browser typings, e.g. the return type of setTimeout. The user can import the Node typings
// if desired.
interface Buffer { }
declare module "buffer" {
global {
interface Buffer { }
}
}

0 comments on commit 2e77f53

Please sign in to comment.