Skip to content

Commit ba60fd2

Browse files
tteltrabpaulmelnikow
authored andcommitted
feat(types): add type for Nock Back currentMode (#1794)
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
1 parent e1597ad commit ba60fd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ declare namespace nock {
244244
type BackMode = 'wild' | 'dryrun' | 'record' | 'lockdown'
245245

246246
interface Back {
247+
currentMode: BackMode
247248
fixtures: string
248249
setMode(mode: BackMode): void
249250

0 commit comments

Comments
 (0)