Skip to content

Array.fill shows error. #143

@PavelTurk

Description

@PavelTurk

This is my code:

import {Foo} from "./Foo";
const foo:string[] = new Array(3).fill(''); //LINE X

At LINE X plugin shows me Property 'fill' doesn't exist on type 'any[]'. At the same time I can compile the code without problems.

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