22 lines
503 B
TypeScript
22 lines
503 B
TypeScript
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
export type PartialRecord<K extends keyof any, T> = {
|
|
[P in K]?: T;
|
|
}
|
|
|
|
export interface TypeAndName {
|
|
readonly type: number;
|
|
readonly name: string;
|
|
}
|
|
|
|
export interface TypeAndDisplayName {
|
|
readonly type: number;
|
|
readonly displayName: string;
|
|
}
|
|
|
|
export interface LocalizedSwitchOption {
|
|
readonly value: boolean;
|
|
readonly displayName: string;
|
|
}
|
|
|
|
export type BeforeResolveFunction = (callback: () => void) => void;
|