feat: init
This commit is contained in:
24
node_modules/mocked-exports/lib/proxy.d.cts
generated
vendored
Normal file
24
node_modules/mocked-exports/lib/proxy.d.cts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/* eslint-disable */
|
||||
|
||||
interface _MockFunction<F> {
|
||||
(...args: any[]): F;
|
||||
new (...args: any[]): F;
|
||||
readonly __mock__: true;
|
||||
readonly __createMock__: typeof createMock;
|
||||
then<T>(fn: () => T): Promise<T>;
|
||||
catch(): Promise<void>;
|
||||
finally(fn: () => void): Promise<void>;
|
||||
}
|
||||
|
||||
declare function createMock(
|
||||
name: string,
|
||||
overrides?: Record<string, any>,
|
||||
): MockFunction;
|
||||
|
||||
type MockFunction = _MockFunction<MockFunction> & {
|
||||
readonly [key: string | symbol]: MockFunction;
|
||||
};
|
||||
|
||||
declare const mock: MockFunction;
|
||||
|
||||
export = mock;
|
||||
Reference in New Issue
Block a user