1

Is there a good way to write the javascript end of an ASP.Net IScriptControl (Microsoft Ajax) in Typescript?

The best I've found is https://github.com/chaholl/TypeScriptDefinitions/blob/master/MicrosoftAjax.d.ts - but that doesn't seem to be valid typescript (changes in the past year?) giving the warning warning 'declare' modifier required for top level element

5
  • A grand total of three changes (two "declare" modifiers and one "boolean" instead of "bool") are required to make that file compile again. Be the pull request you want to see in the world. Commented May 15, 2014 at 17:04
  • There isn't one right now in the DefinitelyTyped project but I am working on it. See Ryan's comment above too. Commented May 15, 2014 at 17:06
  • 1
    Thanks Ryan - as a complete new entrant to Typescript it's hard for me to work these things out - but yes, I will supply a pullrequest. Commented May 15, 2014 at 17:08
  • NYC - thanks. Is there anything I can help with? Commented May 15, 2014 at 17:08
  • Keep an eye on github.com/borisyankov/DefinitelyTyped and test it out when it comes in. Commented May 15, 2014 at 17:16

1 Answer 1

1

For the record, there's now a typescript definition at https://github.com/borisyankov/DefinitelyTyped/tree/master/microsoft-ajax

Later... The above link may now be dead, but a definition which appears to be by another author is available through @types/microsoft-ajax.

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

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.