Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

dtslint TypeError #91

Closed
Closed

Description

$ git clone https://github.com/DefinitelyTyped/DefinitelyTyped.git && cd DefinitelyTyped
$ npm install
$ npm run lint node
TypeError: ts.isVariableStatement is not a function
    at getNodeForExpectType (/home/eps1lon/Development/src/js/forks/DefinitelyTyped/node_modules/dtslint/bin/rules/expectRule.js:241:12)
    at iterate (/home/eps1lon/Development/src/js/forks/DefinitelyTyped/node_modules/dtslint/bin/rules/expectRule.js:228:52)
    at visitEachNode (/home/eps1lon/Development/src/js/forks/DefinitelyTyped/node_modules/dtslint/typescript-installs/2.0/node_modules/typescript/lib/typescript.js:8343:30)
    at Object.forEachChild (/home/eps1lon/Development/src/js/forks/DefinitelyTyped/node_modules/dtslint/typescript-installs/2.0/node_modules/typescript/lib/typescript.js:8501:24)
    at iterate (/home/eps1lon/Development/src/js/forks/DefinitelyTyped/node_modules/dtslint/bin/rules/expectRule.js:235:12)
    at visitEachNode (/home/eps1lon/Development/src/js/forks/DefinitelyTyped/node_modules/dtslint/typescript-installs/2.0/node_modules/typescript/lib/typescript.js:8343:30)
    at Object.forEachChild (/home/eps1lon/Development/src/js/forks/DefinitelyTyped/node_modules/dtslint/typescript-installs/2.0/node_modules/typescript/lib/typescript.js:8501:24)
    at iterate (/home/eps1lon/Development/src/js/forks/DefinitelyTyped/node_modules/dtslint/bin/rules/expectRule.js:235:12)
    at visitNode (/home/eps1lon/Development/src/js/forks/DefinitelyTyped/node_modules/dtslint/typescript-installs/2.0/node_modules/typescript/lib/typescript.js:8331:20)
    at Object.forEachChild (/home/eps1lon/Development/src/js/forks/DefinitelyTyped/node_modules/dtslint/typescript-installs/2.0/node_modules/typescript/lib/typescript.js:8601:21)

Throwing line was added in ddf90bf but
isVariableStatement was added to the public API in microsoft/TypeScript#16121 which was not backported to 2.0.

Activity

  1. ghost closed this as completedin #92on Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      ⌂ Proxy