Files
game-cards-poker-design/frontend/node_modules/fabric/vitest.d.ts
Poker Design Developer 5dbcebf7a2 Fix frontend blank page issues
- Fix router import path in main.js
- Handle Django REST Framework pagination format in API calls
- Add getTemplates function to project API
- Restart frontend development server
2026-05-31 18:40:56 +08:00

33 lines
1.0 KiB
TypeScript

/* eslint-disable @typescript-eslint/no-empty-object-type -- augmenting vitest matchers */
import 'vitest';
import type { TMat2D } from './src/typedefs';
import type { cloneDeepWith } from 'es-toolkit/compat';
import type { FabricImage } from './src/shapes/Image';
type ObjectOptions<T = unknown> = ExtendedOptions<T> & {
includeDefaultValues?: boolean;
};
type ExtendedOptions<T = unknown> = {
cloneDeepWith?: Parameters<typeof cloneDeepWith<T>>[1];
} & object;
interface CustomMatchers<R = unknown, T = unknown> {
toMatchSnapshot(propertiesOrHint?: ExtendedOptions<T>, hint?: string): R;
toMatchObjectSnapshot(propertiesOrHint?: ObjectOptions<T>, hint?: string): R;
toMatchSVGSnapshot(hint?: string): R;
toEqualRoundedMatrix(expected: TMat2D, precision?: number): R;
toEqualSVG(expected: string): void;
toSameImageObject(expected: Partial<FabricImage>): void;
}
declare module 'vitest' {
interface Assertion<T = any> extends CustomMatchers<T> {}
interface AsymmetricMatchersContaining extends CustomMatchers {}
}