knockout icon indicating copy to clipboard operation
knockout copied to clipboard

feature request: TypeScript annotation file for knockout

Open zpdDG4gta8XKpMCd opened this issue 14 years ago • 6 comments

It would be really nice to use such powerful technologies as TypeScript and Knockout together, all it takes is a type definition file. I would appreciate if somebody with deep knowledge of Knockout made it. Thank you.

zpdDG4gta8XKpMCd avatar Oct 01 '12 23:10 zpdDG4gta8XKpMCd

This would be great.

There are a couple of first stabs at this I have found. 1 is here at SO and others are linked to it. http://stackoverflow.com/questions/12689716/typescript-with-knockoutjs

johnpapa avatar Oct 08 '12 18:10 johnpapa

How can the function "applyBindings" be used?

iSchlicht avatar Oct 11 '12 14:10 iSchlicht

Something like this:

export function applyBindings(viewModel?, rootNode?: HTMLElement);

johnpapa avatar Oct 11 '12 14:10 johnpapa

This would get my vote as well. There is a good community project for various .d.ts files at https://github.com/borisyankov/DefinitelyTyped but I'd prefer one from the KO team!

conficient avatar Oct 26 '12 07:10 conficient

@covobonomo / @conficient - if either of you would be keen to maintain a .ts file for KO, I'd be very happy to feature it on the KO website. Although I appreciate you would prefer the KO core team to produce one, we have only finite capacity and are focused on making the core library as rich and solid as possible :)

SteveSanderson avatar Nov 28 '12 10:11 SteveSanderson

Please feel free to reopen this if you would like to continue the discussion

SteveSanderson avatar Nov 28 '12 10:11 SteveSanderson