18 lines
416 B
TypeScript
18 lines
416 B
TypeScript
import { AbstractConstructor } from "type-fest"
|
|
|
|
|
|
/**
|
|
* Represents the common keys between two types.
|
|
* @template A - The first type.
|
|
* @template B - The second type.
|
|
*/
|
|
export type CommonKeys<A, B> = Extract<keyof A, keyof B>
|
|
|
|
/**
|
|
* Represents the static members of a class.
|
|
* @template Class - A class.
|
|
*/
|
|
export type StaticMembers<Class extends AbstractConstructor<any>> = (
|
|
Omit<Class, "prototype">
|
|
)
|