hyperweb-io / hyperweb-boilerplate

MIT License
0 stars 0 forks source link

dealing with types and internal modules like `~bank` #15

Open pyramation opened 3 weeks ago

pyramation commented 3 weeks ago

We can create a declaration file (e.g., bank.d.ts) to declare the types for internal packages:

declare module '~bank' {
  export function getBalance(): number;
  export function sendCoins(amount: number): void;
}
Anmol1696 commented 3 weeks ago

Should this be part of hyperbweb-build? something like: @hyperweb/types?