webxdc / webxdc_docs

Documentation for Webxdc
https://docs.webxdc.org
11 stars 4 forks source link

adapt webxdc.d.ts to reality #52

Closed r10s closed 1 year ago

r10s commented 1 year ago

@Simon-Laux this also changes a parameter name and adapts to typescript naming conventions, not sure if that is used elsewhere

Simon-Laux commented 1 year ago

We need to update it in calendar, hello and test repo. Basically copy paste of this .d.ts file, but in the hello repo it needs to be modified a tiny bit to include some types for the simulator (webxdc.js), so that the CI check works there (currently there only is a ci check in the hello repo so these simulator types are only required there.).

Simon-Laux commented 1 year ago

not sure if that is used elsewhere

method parameter names are not important in typescript, the position counts, but not the name. The type which name you changed SendOptions is not exported, so all good, no changes needed.