Open pyramation opened 3 weeks ago
We can create a declaration file (e.g., bank.d.ts) to declare the types for internal packages:
bank.d.ts
declare module '~bank' { export function getBalance(): number; export function sendCoins(amount: number): void; }
Should this be part of hyperbweb-build? something like: @hyperweb/types?
hyperbweb-build
@hyperweb/types
We can create a declaration file (e.g.,
bank.d.ts
) to declare the types for internal packages: