سؤال

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

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top