Skip to content

Flexible export #340

@danny-huang-openfind

Description

@danny-huang-openfind

🍩 Feature Request

Is your feature request related to a problem?

Not really a problem, but I want a more flexible export statement when I only want to import one thing.

Describe the solution you'd like

As for example, if I want to export Nullable, which is below Union, I have to write:
import { Nullable } from 'ts-toolbelt/out/Union/Nullable'
That 'out' folder and repeated 'Nullable' is kinda annoying to me.
I would like to have a more clean solution, maybe like:
import { Nullable } from ts-toolbelt/Union

Describe alternatives you've considered

I dont think there is one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions