Skip to content

API: expose getEffectiveTypeParameterDeclarations #24248

Closed
@ajafff

Description

@ajafff

TypeScript Version: 2.9.0-dev.20180518

Search Terms:

Code

import * as ts from 'typescript';
function getTypeParameters(node: ts.DeclarationWithTypeParameters) {
    return node.typeParameters;
}

Expected behavior:

No compile error. This used to work in 2.9.0-rc

Actual behavior:

Property 'typeParameters' does not exist on type 'DeclarationWithTypeParameters'.
  Property 'typeParameters' does not exist on type 'JSDocTypedefTag'.

Playground Link: not possible

Related Issues:

caused by #23947 @sandersn

Metadata

Metadata

Assignees

Labels

APIRelates to the public API for TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions