google / schema-dts

JSON-LD TypeScript types for Schema.org vocabulary
Apache License 2.0
860 stars 32 forks source link

Remove TypeScript as an explicit peer dependency. #181

Closed Eyas closed 1 year ago

Eyas commented 2 years ago

This is one potential fix to #180 that allows schema-dts to continue to be used with import and any/no bundlers without increasing bundle size.

It is also possible to address #180 by simply asking users to save schema-dts as a dev dependency. This is generally more correct for typings, but runs the risk of leaving dangling imports to nonexistent "schema-dts" js.

Fonger commented 1 year ago

Hi @Eyas any ETA about the new release?

I can't install this as dev dependencies because eslint complains about node/no-unpublished-import I don't know why. I only use type import import type ... from 'schema-dts'.