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

Add an interfaces.d.ts file to begin with #105

Closed splitinfinities closed 1 year ago

splitinfinities commented 2 years ago

Some of the framework wrappers need manually defined interfaces exported and available for successful compilations. Adding a file at /src/interfaces.d.ts with the contents:

export * from './components';
// You can provide your custom interfaces to any consumers with this file. 

Can ease the integration of any given framework wrapper functions.

splitinfinities commented 2 years ago

Another item to consider - pointing to this new interface.d.ts file from within the package.json: https://github.com/ionic-team/stencil-component-starter/blob/master/package.json#L9 (not from the src directory, but from the dist directory)

rwaskiewicz commented 1 year ago

After discussing the direction of the interface.d.ts file in the Framework repo recently, I've decided we won't be moving forward with this. We may consider a more specialized starter in the future npm init stencil stencil-angular my-project-name, but would like to keep the stencil-component-starter a simpler version of getting started with Stencil for now.