Skip to content

master is broken from incorrect call to typeToTypeNode #38335

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
src/services/codefixes/fixReturnTypeInAsyncFunction.ts:49:42 - error TS2554: Expected 3-4 arguments, but got 1.

49         const promisedTypeNode = checker.typeToTypeNode(promisedType);
                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  built/local/compiler.d.ts:3099:36
    3099         typeToTypeNode(type: Type, enclosingDeclaration: Node | undefined, flags: NodeBuilderFlags | undefined): TypeNode | undefined;
                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    An argument for 'enclosingDeclaration' was not provided.


Found 1 error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    InfrastructureIssue relates to TypeScript team infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions