We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Typescript definitions ej.widgets.all.d.ts with a lot of errors

Hi, I'm getting 1092 errors when I add the ej.widgets.all.d.ts file to my project.
for example the interface
   interface DialogPositon {
       X?: number;
       Y?: number;
   }

is declared twice, lines 849 and 2355.

Is there an updated file?
thanks

7 Replies

HP Harikrishnan P Syncfusion Team February 3, 2015 10:06 AM UTC

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



RL RL February 4, 2015 03:12 PM UTC

great, so far I've managed to fix most of the problems and have the definitions working.

I also consider that the property width in the interface RibbonOptions should be string and not number.

interface RibbonOptions {
        width?: string; //number;


RL RL February 4, 2015 03:29 PM UTC


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







RL RL February 4, 2015 04:48 PM UTC

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. :(


RL RL replied to RL February 4, 2015 04:56 PM UTC

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;
    }


SK Shanmugaraja K Syncfusion Team February 5, 2015 04:13 PM UTC

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 K


SK Sarath Kumar P Syncfusion Team February 6, 2015 01:07 PM UTC

Hi 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


Loader.
Live Chat Icon For mobile
Up arrow icon