Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Ambient const enums are not allowed when the '--isolatedModules' flag is provided. TS1209 #521

@grigio

Description

@grigio

Version of EOSJS
edge

Describe the bug
I tried to follow the official docs

node_modules/eosjs/dist/eosjs-numeric.d.ts
TypeScript error: Ambient const enums are not allowed when the '--isolatedModules' flag is provided.  TS1209

    39 | export declare function base64ToBinary(s: string): Uint8Array;
    40 | /** Key types this library supports */
  > 41 | export declare const enum KeyType {
       |                           ^
    42 |     k1 = 0,
    43 |     r1 = 1
    44 | }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions