Skip to content

Commit

Permalink
fix(sinon): use sinonjs__fake-timers rather than alias
Browse files Browse the repository at this point in the history
https://github.com/sinonjs/fake-timers appears to have added types which are incompatible
with the current implementation in DefinitelyTyped.

Refs: sinonjs/sinon#2353
Refs: sinonjs/sinon#2352
  • Loading branch information
bcoe committed Apr 9, 2021
1 parent 05bd273 commit 51905f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion types/sinon/index.d.ts
Expand Up @@ -11,7 +11,7 @@
// Simon Schick <https://github.com/SimonSchick>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as FakeTimers from '@sinonjs/fake-timers';
import * as FakeTimers from 'sinonjs__fake-timers';

// sinon uses DOM dependencies which are absent in browser-less environment like node.js
// to avoid compiler errors this monkey patch is used
Expand Down
5 changes: 0 additions & 5 deletions types/sinon/tsconfig.json
Expand Up @@ -15,11 +15,6 @@
"../"
],
"types": [],
"paths": {
"@sinonjs/*": [
"sinonjs__*"
]
},
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
Expand Down

0 comments on commit 51905f4

Please sign in to comment.