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

Stuart Moore
  • 681
  • 5
  • 32
  • 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. – Ryan Cavanaugh May 15 '14 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. – NYCdotNet May 15 '14 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. – Stuart Moore May 15 '14 at 17:08
  • NYC - thanks. Is there anything I can help with? – Stuart Moore May 15 '14 at 17:08
  • Keep an eye on https://github.com/borisyankov/DefinitelyTyped and test it out when it comes in. – NYCdotNet May 15 '14 at 17:16

1 Answers1

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.

Andrew Morton
  • 24,203
  • 9
  • 60
  • 84
Stuart Moore
  • 681
  • 5
  • 32