ionic-team / stencil-component-starter

Minimal starter project for building shareable web components with Stencil
https://github.com/ionic-team/stencil
MIT License
278 stars 128 forks source link

fix(types): export JSX typings from index.ts #136

Closed rwaskiewicz closed 5 months ago

rwaskiewicz commented 5 months ago

re-add an export statement to re-export the contents of './components/' from the root level index.ts file.

prior to this commit, folks using stencil's tutorial for spinning up a new project using our react framework wrapper would be greeted with the following error:

lib/components/stencil-generated/index.ts:6:15 - error TS2305: Module '"stencil-library"' has no exported member 'JSX'.

6 import type { JSX } from 'stencil-library';
                ~~~
Found 1 error in lib/components/stencil-generated/index.ts:6

this re-exports the type, previously removed in https://github.com/ionic-team/stencil-component-starter/pull/134