Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
🛠 add custom TS declaration for signal-exit package
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsweet committed Sep 23, 2018
1 parent 9d1962d commit a6465e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/api/Foxr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import execa from 'execa'
// @ts-ignore
import onExit from 'signal-exit'
import Marionette from '../Marionette'
import Browser from './Browser'
Expand Down
5 changes: 5 additions & 0 deletions types/signal-exit.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module 'signal-exit' {
function onExit(callback: (code: number, signal: string) => void): void

export = onExit
}

0 comments on commit a6465e0

Please sign in to comment.