Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2025-03-03 17:25:47 +00:00
parent a8ade63a2f
commit 452ffd6e8e
3120 changed files with 20845 additions and 14941 deletions

View file

@ -8,7 +8,7 @@ This package contains type definitions for sinon (https://sinonjs.org).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon.
### Additional Details
* Last updated: Wed, 10 Jan 2024 09:07:08 GMT
* Last updated: Sat, 22 Feb 2025 12:42:31 GMT
* Dependencies: [@types/sinonjs__fake-timers](https://npmjs.com/package/@types/sinonjs__fake-timers)
# Credits

13
node_modules/@types/sinon/index.d.ts generated vendored
View file

@ -675,11 +675,7 @@ declare namespace Sinon {
* An exception is thrown if the property is not already a function.
* The original function can be restored by calling object.method.restore(); (or stub.restore();).
*/
<T, K extends keyof T>(
obj: T,
method: K,
): T[K] extends (...args: infer TArgs) => infer TReturnValue ? SinonStub<TArgs, TReturnValue>
: SinonStub;
<T, K extends keyof T>(obj: T, method: K): SinonStubbedFunction<T[K]>;
}
interface SinonExpectation extends SinonStub {
@ -1482,6 +1478,13 @@ declare namespace Sinon {
type SinonStubbedMember<T> = T extends (...args: infer TArgs) => infer TReturnValue ? SinonStub<TArgs, TReturnValue>
: T;
/**
* Replaces a function type with a Sinon stub.
*/
type SinonStubbedFunction<T> = T extends (...args: infer TArgs) => infer TReturnValue
? SinonStub<TArgs, TReturnValue>
: SinonStub;
interface SinonFake {
/**
* Creates a basic fake, with no behavior

View file

@ -1,6 +1,6 @@
{
"name": "@types/sinon",
"version": "17.0.3",
"version": "17.0.4",
"description": "TypeScript definitions for sinon",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon",
"license": "MIT",
@ -57,6 +57,7 @@
"dependencies": {
"@types/sinonjs__fake-timers": "*"
},
"typesPublisherContentHash": "cc1350cc55f70530a7cbb4c2a4cadd237011448aa601750d7ea7eac59e83bf53",
"typeScriptVersion": "4.6"
"peerDependencies": {},
"typesPublisherContentHash": "d5cbbbf96c51c2cabba604f2bfb1fe0c26940bfe28cf3520fb40fee60a8201c0",
"typeScriptVersion": "5.0"
}