Improve ORM templates; improve StaticClass typedef; bump version
This commit is contained in:
@@ -36,7 +36,7 @@ export function isInstantiableOf<T>(what: unknown, type: StaticClass<T, any>): w
|
||||
/**
|
||||
* Type that identifies a value as a static class, even if it is not instantiable.
|
||||
*/
|
||||
export type StaticClass<T, T2> = Function & {prototype: T} & T2 // eslint-disable-line @typescript-eslint/ban-types
|
||||
export type StaticClass<T, T2, TCtorParams extends any[] = any[]> = Function & {prototype: T} & { new (...args: TCtorParams) : T } & T2 // eslint-disable-line @typescript-eslint/ban-types
|
||||
|
||||
/**
|
||||
* Type that identifies a value as a static class that instantiates to itself
|
||||
|
||||
Reference in New Issue
Block a user