Skip to content

Export options types for encode/decode #99

@grantila

Description

@grantila

If I want to write a wrapper around encode() or decode() (and the other), I might want to forward the types needed for these functions, e.g. EncodeOptions. But to reach this type I need to import

import { EncodeOptions } from "@msgpack/msgpack/dist/encode"

...which is kindof ugly. I don't want to import from a dist/ folder, that's a technical detail that may change in the future.

It would be great if these types which are implicitly exposed, would also be explicitly exported in the index file.

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