fix: medium tests dependencies (#30612)

This commit is contained in:
Daniel Dietzler 2026-08-07 11:36:20 +02:00 committed by GitHub
parent a9a99cffbf
commit 5ad1e4e0f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 45 additions and 35 deletions

View file

@ -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]>>;
};