File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ export default class HMR {
2020 }
2121 }
2222
23- setAcceptCallback ( callback ?: Function ) {
23+ setAcceptCallback ( callback ?: ( ) => void ) {
2424 this . callback = callback ;
2525 this . setSelfAccepted ( false ) ;
2626 }
2727
28- setDisposeHandler ( callback : Function ) {
28+ setDisposeHandler ( callback : ( ) => void ) {
2929 this . disposeHandler = callback ;
3030 }
3131
Original file line number Diff line number Diff line change @@ -141,9 +141,9 @@ type Compilation = {
141141 id : string ;
142142 exports : any ;
143143 hot : {
144- accept : Function | ( ( arg : string | string [ ] , cb : Function ) => void ) ;
144+ accept : ( ( ) => void ) | ( ( arg : string | string [ ] , cb : ( ) => void ) => void ) ;
145145 decline : ( path : string | Array < string > ) => void ;
146- dispose : ( cb : Function ) => void ;
146+ dispose : ( cb : ( ) => void ) => void ;
147147 data : Object ;
148148 status : ( ) => HMRStatus ;
149149 addStatusHandler : ( cb : ( status : HMRStatus ) => void ) => void ;
@@ -881,7 +881,7 @@ export default class TranspiledModule {
881881 }
882882 manager . enableWebpackHMR ( ) ;
883883 } ,
884- dispose : ( cb : Function ) => {
884+ dispose : ( cb : ( ) => void ) => {
885885 this . hmrConfig = this . hmrConfig || new HMR ( ) ;
886886
887887 this . hmrConfig . setDisposeHandler ( cb ) ;
Original file line number Diff line number Diff line change @@ -411,7 +411,9 @@ export type PackageJSON = {
411411 devDependencies ?: {
412412 [ dep : string ] : string ;
413413 } ;
414- jest ?: object ;
414+ jest ?: {
415+ setupFilesAfterEnv ?: string [ ] ;
416+ } ;
415417 resolutions ?: { [ dependency : string ] : string } ;
416418} ;
417419
You can’t perform that action at this time.
0 commit comments