Skip to content

dealing with types and internal modules like ~bank #15

@pyramation

Description

@pyramation

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions