2

Where are TypeScript definitions for the WinJS library?

Actually why is WinJS not written in TypeScript in the first place?

4 Answers 4

5

The definitions for WinJS are here:

https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/winjs

WinJS pre-dates TypeScript. That's not to say they won't transfer it to TypeScript now given TypeScript 1.0 was officially announced last night.

Sign up to request clarification or add additional context in comments.

Comments

1

There are also some definitions in the Official TypeScript repository found here: https://typescript.codeplex.com/SourceControl/latest#typings/

They might be the same as the one on DefnitelyTyped but i'm not sure.

Comments

1

It seems WinJS definitions on DefinitelyTyped are not updated which is sad. So best source today is probably WinJS github repo: https://github.com/winjs/winjs/tree/master/typings/winjs

Comments

0

I have a tutorial about when to use DefinitelyTyped vs Typings, as I found both of them to be very confusing.

TypeScript wasn't a think when WinJS was first created as well. Not everyone wants to use TypeScript, so to get web developers on board, I'd imagine that simply using JavaScript is a better starting point than requiring them to learn a new language (TypeScript) on top of learning the WinJS programming model.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.