Typescript definitions ej.widgets.all.d.ts with a lot of errors
for example the interface
interface DialogPositon {
X?: number;
Y?: number;
}
is declared twice, lines 849 and 2355.
Is there an updated file?
thanks
Hi
Rui,
We
were able to reproduce the problem and we considered this issue “TypeScript
file throws error” as bug, also have logged a report regarding this. A support
incident to track the status of this defect has been created under your
account. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please
let me know if you have any questions.
Regards,
HariKrishnan
I also consider that the property width in the interface RibbonOptions should be string and not number.
interface RibbonOptions {
width?: string; //number;
Shouldn't the tabs be of type array, wewill have an array of tabs.
I truly think that the name RibbonTabs for the interface doesn't seem correct, it would be better IMHO, to be named as IRibbonTab (not tabs), and starting with an I.
interface RibbonOptions {
width?: string;
tabs?: Array<RibbonTabs>; //RibbonTabs
ej.Ribbon.alignType = {
rows: "rows",
columns: "columns"
};
but in the definition you have:
enum RibbonAlignType {
rows,
columns,
}
This clearly does not match. :(
in your javascript you have:
ej.Ribbon.alignType = {
rows: "rows",
columns: "columns"
};
but in the definition you have:
enum RibbonAlignType {
rows,
columns,
}
This clearly does not match. :(
To overcome this in your definition file I've added the following:
declare module ej.Ribbon {
enum alignType {
rows,
columns,
}
}
and changed the declaration of RibbonTabGroups to be:
interface RibbonTabGroups {
contentID?: string;
text?: string;
type?: string;
alignType?: ej.Ribbon.alignType; //RibbonAlignType
customContent?: string;
enableGroupExpander?: boolean;
content?: RibbonTabContent;
}
Hi Rui Lima,
Thanks for your suggestions. We are validating on this and we will update you further details on Feb 6,2015.
Please let us know if you need further assistance.
Regards,
Shanmugaraja KHi Rui,
We were able to reproduce the problem and we considered this
issue “Typescript issues with ribbon” as bug, also have logged a report
regarding this. A support incident to track the status of this defect has been
created under your account. Please log on to our support website to check for
further updates.
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let me know if you have any questions.
Regards,
Sarath kumar P
- 7 Replies
- 4 Participants
-
RL RL
- Feb 1, 2015 07:37 PM UTC
- Feb 6, 2015 01:07 PM UTC