FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

`declare as namespace` externs without namespaced module output · Issue #905 · angular/tsickle · GitHub

This repository was archived by the owner on May 22, 2025. It is now read-only.

Repository navigation

This repository was archived by the owner on May 22, 2025. It is now read-only.

declare as namespace externs without namespaced module output #905

Description

I'm generating externs file from a d.ts file which defines an UMD module. In the output, the filename becomes the top level namespace. I want to generate externs without this top level namespace. Is it possible?

/**
 * @externs
 * @suppress {duplicate,checkTypes}
 */
// NOTE: generated by tsickle, do not edit.
// externs from :
/** @const */
var _$$index$d = {};
/** @const */
_$$index$d.A = {};

/**
 * @return {void}
 */
_$$index$d.A.hello = function() {};

the d.ts file:

declare namespace A {
    function hello(): void;
}

export = A;
export as namespace A;

Activity

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


      Back | FazBrowse Home | New Git URL