Pergunta

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

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top