Hi,
We are using kendo (version 2020.2.617) from typescript. The current of the culture() function definition in kendo.all.d.ts looks like this:
declare namespace kendo {
function culture(): {
name: string;
calendar: {
AM: string[];
PM: string[];
"/": string;
":": string;
days: {
names: string[];
namesAbbr: string[];
namesShort: string[];
};
months: {
names: string[];
namesAbbr: string[];
};
patterns: {
D: string;
F: string;
G: string;
M: string;
T: string;
Y: string;
d: string;
g: string;
m: string;
s: string;
t: string;
u: string;
y: string;
};
firstDay: number;
twoDigitYearMax: number;
};
calendars: {
standard: {
AM: string[];
PM: string[];
"/": string;
":": string;
days: {
names: string[];
namesAbbr: string[];
namesShort: string[];
};
months: {
names: string[];
namesAbbr: string[];
};
patterns: {
D: string;
F: string;
G: string;
M: string;
T: string;
Y: string;
d: string;
g: string;
m: string;
s: string;
t: string;
u: string;
y: string;
};
firstDay: string;
twoDigitYearMax: number;
};
};
numberFormat: {
currency: {
decimals: number;
",": string;
".": string;
groupSize: number[];
pattern: string[];
symbol: string;
};
decimals: number;
",": string;
".": string;
groupSize: number[];
pattern: string[];
percent: {
decimals: number;
",": string;
".": string;
groupSize: number[];
pattern: string[];
symbol: string;
};
};
};
It would be desirable if this was declared as an interface so client code could use the interface type and assign the culture to a typed variable, eg:
let currentCulture: IKendoCulture = kendo.culture( );
Thanks and regards,
Lou