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

implicit namespace creation omited from emitted types #1374

Open
Labels
@scottbessler

Description

@scottbessler

tsconfig.json

{    "compilerOptions": {        "outDir": "./dist",        "declaration": true,        "moduleResolution": "node",        "strict": true,        "skipLibCheck": true    }}

a.ts

export function Foo() {    return "Foo";}export enum Bar {    bar}Foo.Bar = Bar;

tsgo emit output

➜ tsgo➜ cat dist/a.d.tsexport declare function Foo(): string;export declare enum Bar {    bar = 0}

tsc emit output

➜ tsc➜ cat dist/a.d.tsexport declare function Foo(): string;export declare namespace Foo {    var Bar: typeof import("./a").Bar;}export declare enum Bar {    bar = 0}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp