Skip to content

accessing types from semiotic v2 #527

Open
@cainlevy

Description

@cainlevy

When using semiotic@2.0.0-rc5, I am able to access the types only when I import components by name from the dist/ directory. This is a tricky thing to discover because the live code examples use lib/.

Types Included

import XYFrame from 'semiotic/dist/XYFrame'

Types Not Included

import XYFrame from 'semiotic/lib/XYFrame';
import {XYFrame} from 'semiotic';

Thoughts

Is importing components by pathname the right pattern? It would be helpful to clarify dist vs lib, especially in the code examples on https://semiotic.nteract.io/.

Should I also be able to import components from the package index? Might need a "types" entry in package.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    chores 🧹Infrastructure and updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions