nichady / golte

Render Svelte components in your Go http handlers.
https://pkg.go.dev/github.com/nichady/golte
MIT License
185 stars 7 forks source link

expose Typescript type correctly #8

Closed winston0410 closed 2 months ago

winston0410 commented 2 months ago

At the moment, the type of this package is not exposed correctly, and I get the following error:

  There are types at 'golte/ts/public/config/index.ts', but this result could not be resolved when respecting package.json "exports". The 'golte' library may need to update its package.json or typings.ts(7016)

This PR is trying to fix this by explicitly export types.

winston0410 commented 2 months ago

@nichady Can you review this for me please?

nichady commented 2 months ago

Looks good, thanks!