Files
ezbookkeeping/src/core/base.ts
T
2025-02-06 20:32:52 +08:00

27 lines
590 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 NameValue {
readonly name: string;
readonly value: string;
}
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;