e2ed
Version:
E2E testing framework over Playwright
8 lines (7 loc) • 342 B
TypeScript
/**
* Generic class type by constructor arguments, prototype (instance) and static part.
*/
export type Class<ConstructorArgs extends readonly unknown[] = readonly unknown[], Prototype extends object = object, Static extends object = object> = {
readonly prototype: Prototype;
new (...args: ConstructorArgs): Prototype;
} & Static;