mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
8d3d0a29ee
- prevent undefined rootType, log it instead
33 lines
866 B
TypeScript
33 lines
866 B
TypeScript
export type UnknownMap = Record<string, unknown>;
|
|
export type Translation = { translation: string; context?: string };
|
|
export type LanguageMap = Record<string, Translation>;
|
|
|
|
export type CountryInfoMap = Record<string, CountryInfo | undefined>;
|
|
export interface CountryInfo {
|
|
code: string;
|
|
currency: string;
|
|
currency_fraction?: string;
|
|
currency_fraction_units?: number;
|
|
smallest_currency_fraction_value?: number;
|
|
currency_symbol?: string;
|
|
timezones?: string[];
|
|
fiscal_year_start: string;
|
|
fiscal_year_end: string;
|
|
locale: string;
|
|
}
|
|
|
|
export interface VersionParts {
|
|
major: number;
|
|
minor: number;
|
|
patch: number;
|
|
beta?: number;
|
|
}
|
|
|
|
export type Creds = { errorLogUrl: string; telemetryUrl: string; tokenString: string };
|
|
|
|
export type UnexpectedLogObject = {
|
|
name: string;
|
|
message: string;
|
|
stack: string;
|
|
more: Record<string, unknown>;
|
|
} |