mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
fix: medium tests dependencies (#30612)
This commit is contained in:
parent
a9a99cffbf
commit
5ad1e4e0f7
4 changed files with 45 additions and 35 deletions
|
|
@ -32,6 +32,7 @@ import {
|
|||
UserMetadataKey,
|
||||
WorkflowType,
|
||||
} from 'src/enum';
|
||||
import { Mocked } from 'vitest';
|
||||
|
||||
export type DeepPartial<T> = T extends Date
|
||||
? T
|
||||
|
|
@ -647,7 +648,10 @@ export type JSONSchemaProperty = {
|
|||
required?: string[];
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
export interface ClassConstructor<T = any> extends Function {
|
||||
new (...args: any[]): T;
|
||||
}
|
||||
export type ClassConstructor<T> = T extends new (...args: infer R) => infer L
|
||||
? new (...args: R) => L
|
||||
: new (...args: any[]) => unknown;
|
||||
|
||||
export type ClassConstructorsToInstances<T extends readonly ClassConstructor<unknown>[]> = {
|
||||
[K in keyof T]: InstanceType<T[K]> | Mocked<InstanceType<T[K]>>;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue