Skip to content

[TypeScript] SpecVersion is not properly exported #186

@Nerwyn

Description

@Nerwyn

SpecVersion is not properly exported, which makes using DynamicScheme constructors a little messy as we have to cast inputs to 2021 | 2025 instead of the imported SpecVersion type. We could import directly from the color_spec.js file, but this doesn't work with tsconfig moduleResolution set to bundler.

Adding export * from './dynamiccolor/color_spec'; to the root index.ts file should fix it.

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