Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Type-only import that merges with namespace cannot be used in a type position. #36397

Closed
Assignees
andrewbranch
Labels
BugA bug in TypeScriptFixedA PR has been merged for this issue
@rbuckton

Description

@rbuckton

TypeScript Version: 3.8.0-dev.20200123

Search Terms: type only import merged namesapce

Code

// file1.tsexportinterfaceFoo{}exportnamespaceFoo{exportconstx=1;}// file2.tsimporttype{Foo}from"./file1";declarefunctionf():Foo;// (1)

Expected behavior:

  1. No error

Actual behavior:

  1. Error:Cannot use namespace 'Foo' as a type.

Playground Link:
Related Issues:

Metadata

Metadata

Assignees

Labels

BugA bug in 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


    [8]ページ先頭

    ©2009-2025 Movatter.jp