Skip to content

how to handle constants? #10

@chrisdrackett

Description

@chrisdrackett

I'm currently migrating my react mapkit library to typescript from flow and I'm trying to use your typings instead of the flow typings I had written originally.

One thing that I'm not sure about the best way to handle is the constants provided by mapkit (map type, or FeatureVisibility as examples).

I could change these to just be normal strings but if possible a user should be required to pass in something like mapkit.FeatureVisibility.Adaptive? I'm fairly new to typescript so any suggestions are super helpful!

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