diff options
Diffstat (limited to 'vanilla/node_modules/@vitest/mocker/dist/index.d-C-sLYZi-.d.ts')
| -rw-r--r-- | vanilla/node_modules/@vitest/mocker/dist/index.d-C-sLYZi-.d.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vanilla/node_modules/@vitest/mocker/dist/index.d-C-sLYZi-.d.ts b/vanilla/node_modules/@vitest/mocker/dist/index.d-C-sLYZi-.d.ts new file mode 100644 index 0000000..cad0899 --- /dev/null +++ b/vanilla/node_modules/@vitest/mocker/dist/index.d-C-sLYZi-.d.ts @@ -0,0 +1,25 @@ +import './types.d-B8CCKmHt.js'; + +type Key = string | symbol; +type CreateMockInstanceProcedure = (options?: { + prototypeMembers?: (string | symbol)[]; + name?: string | symbol; + originalImplementation?: (...args: any[]) => any; + keepMembersImplementation?: boolean; +}) => any; +interface MockObjectOptions { + type: "automock" | "autospy"; + globalConstructors: GlobalConstructors; + createMockInstance: CreateMockInstanceProcedure; +} +declare function mockObject(options: MockObjectOptions, object: Record<Key, any>, mockExports?: Record<Key, any>): Record<Key, any>; +interface GlobalConstructors { + Object: ObjectConstructor; + Function: FunctionConstructor; + RegExp: RegExpConstructor; + Array: ArrayConstructor; + Map: MapConstructor; +} + +export { mockObject as m }; +export type { CreateMockInstanceProcedure as C, GlobalConstructors as G, MockObjectOptions as M }; |
