hyperweb-io / hyperweb-io/hyperweb-boilerplate

dealing with types and internal modules like `~bank`

Open
#15 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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

```ts
declare module '~bank' {
export function getBalance(): number;
export function sendCoins(amount: number): void;
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.