Skip to content

Commit

Permalink
improvement(global.d): extend NodeModule by adding "hot" property
Browse files Browse the repository at this point in the history
  • Loading branch information
aneurysmjs committed Oct 10, 2019
1 parent e4f8996 commit e941284
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ declare namespace NodeJS {
}
}

declare interface NodeModule {
hot: {
accept(
dependencies: Array<string> | string,
callback?: (updatedDependencies: Array<string | number>) => void,
): void;
};
}

declare module '*.bmp' {
const src: string;
export default src;
Expand Down

0 comments on commit e941284

Please sign in to comment.