Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript definition files #242

Open
dazinator opened this issue Jan 9, 2017 · 1 comment
Open

typescript definition files #242

dazinator opened this issue Jan 9, 2017 · 1 comment

Comments

@dazinator
Copy link

Hello,

Just wondering if anyone happens to know if there are typescript definition files available for knockout-kendo?

@IanYates
Copy link

Not really. I use the typescript definitions from Kendo itself just fine.

What are you trying to achieve?

The only bit of typescript I've got that even wants to touch Knockout Kendo is to set some global options for the date picker. Specifically that is

ko.bindingHandlers.kendoDatePicker.options = {
    format: 'dd/MM/yyyy',
    parseFormats: ['dd MM yyyy', 'dd.MM.yyyy', 'dd-MM-yyyy', 'dd/MM/yy', 'dd.MM.yy', 'dd-MM-yy', 'dd/MM/', 'dd.MM.', 'dd-MM-', 'dd/MM', 'dd.MM', 'dd-MM', 'd/MM', 'dd.MM', 'dd-MM'],
    
};

interface KnockoutBindingHandlers {
    kendoDatePicker: KnockoutBindingHandler;
}

Even then I didn't bother specifying the type of "options" as it's typed as any and I wasn't using it anywhere apart from this one spot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants