Skip to content

Commit

Permalink
feat(types): add type for Nock Back currentMode (#1794)
Browse files Browse the repository at this point in the history
currentMode exists but isn't typed - https://github.com/nock/nock/blob/master/lib/back.js#L282

It's referenced in the docs here https://github.com/nock/nock#modes
  • Loading branch information
tteltrab authored and paulmelnikow committed Oct 31, 2019
1 parent e1597ad commit ba60fd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions types/index.d.ts
Expand Up @@ -244,6 +244,7 @@ declare namespace nock {
type BackMode = 'wild' | 'dryrun' | 'record' | 'lockdown'

interface Back {
currentMode: BackMode
fixtures: string
setMode(mode: BackMode): void

Expand Down

0 comments on commit ba60fd2

Please sign in to comment.