demergent-labs / azle

A WebAssembly runtime for TypeScript and JavaScript on ICP
MIT License
210 stars 36 forks source link

Add typing to TS Canister type #460

Open dansteren opened 2 years ago

dansteren commented 2 years ago

Current: export type Canister<T> = T;

We should replace T with something that has more info like the func type. We especially want to add the possibility of an optional cycle parameter and the notify method.

lastmjs commented 1 year ago

We now use a class called Canister. It would be nice to provide more type checking in this class.

lastmjs commented 1 year ago

We now use a class called Service.