Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Regression from setting tsconfig option moduleResolution to NodeNext #323

@MajorLift

Description

@MajorLift

References

Error message

src/SnapKeyring.ts:162:13 - error TS2339: Property 'account' does not exist on type 'Json[] | Record<string, Json> | undefined'.

162     const { account, accountNameSuggestion, displayConfirmation } =
                ~~~~~~~

src/SnapKeyring.ts:162:22 - error TS2339: Property 'accountNameSuggestion' does not exist on type 'Json[] | Record<string, Json> | undefined'.

162     const { account, accountNameSuggestion, displayConfirmation } =
                         ~~~~~~~~~~~~~~~~~~~~~

src/SnapKeyring.ts:162:45 - error TS2339: Property 'displayConfirmation' does not exist on type 'Json[] | Record<string, Json> | undefined'.

162     const { account, accountNameSuggestion, displayConfirmation } =
                                                ~~~~~~~~~~~~~~~~~~~

src/SnapKeyring.ts:205:13 - error TS2339: Property 'account' does not exist on type 'Json[] | Record<string, Json> | undefined'.

205     const { account: newAccount } = message.params;
                ~~~~~~~

src/SnapKeyring.ts:234:13 - error TS2339: Property 'id' does not exist on type 'Json[] | Record<string, Json> | undefined'.

234     const { id } = message.params;
                ~~

src/SnapKeyring.ts:276:13 - error TS2339: Property 'id' does not exist on type 'Json[] | Record<string, Json> | undefined'.

276     const { id, result } = message.params;
                ~~

src/SnapKeyring.ts:276:17 - error TS2339: Property 'result' does not exist on type 'Json[] | Record<string, Json> | undefined'.

276     const { id, result } = message.params;
                    ~~~~~~

src/SnapKeyring.ts:297:13 - error TS2339: Property 'id' does not exist on type 'Json[] | Record<string, Json> | undefined'.

297     const { id } = message.params;
                ~~


Found 8 errors in the same file, starting at: src/SnapKeyring.ts:162

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions