Skip to content

Export type alias? #3705

@danishin

Description

@danishin

Foremost, thanks for all the work you guys have put into this amazing language.

Is there a support for exporting type alias?

For example,

types.ts

import express = require("express");

export type ExpressResponse = express.Response;

api.ts

import types = require("./types.ts")

const res:types.ExpressResponse = .....;

I have failed to compile so far and wonder if this isn't implemented.

Thanks in advance.

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