Skip to content

Transpiler issues error 'This condition will always return 'false'' #18

Open
@fcherny

Description

@fcherny

if (typeof dest === Array) {

When transpiling in typescript, the 'if' statement:
if (typeof dest === Array)
returns the error:
TS2367: This condition will always return 'false' since the types 'string' and 'ArrayConstructor' have no overlap.
I believe the statement should be changed to
if (dest instanceof Array)
as is done elsewhere in the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions