Skip to content
57 changes: 47 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,56 @@
/**
* @typedef {import('./lib/components.js').Components} Components
* @typedef {import('./lib/components.js').ExtraProps} ExtraProps
* @typedef {import('./lib/index.js').CreateEvaluater} CreateEvaluater
* @typedef {unknown} Components
* @typedef {unknown} ExtraProps
Comment on lines +2 to +3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest removing these stubs.

* @typedef {import('./lib/index.js').ElementAttributeNameCase} ElementAttributeNameCase
* @typedef {import('./lib/index.js').EvaluateExpression} EvaluateExpression
* @typedef {import('./lib/index.js').EvaluateProgram} EvaluateProgram
* @typedef {import('./lib/index.js').Evaluater} Evaluater
* @typedef {import('./lib/index.js').Fragment} Fragment
* @typedef {import('./lib/index.js').Jsx} Jsx
* @typedef {import('./lib/index.js').JsxDev} JsxDev
* @typedef {import('./lib/index.js').Options} Options
* @typedef {import('./lib/index.js').Props} Props
* @typedef {unknown} Fragment
* @typedef {import('./lib/index.js').Source} Source
* @typedef {import('./lib/index.js').Space} Space
* @typedef {import('./lib/index.js').StylePropertyNameCase} StylePropertyNameCase
*/

/**
* @template [JsxElementType=any]
* @template [JsxProps=any]
* @template [JsxKey=any]
* @template [JsxElement=any]
* @typedef {import('./lib/index.js').Jsx} Jsx
*/

/**
* @template {Jsx} [JsxFunction=Jsx]
* The type of the `jsx` function impoted from `${jsxImportSource}/jsx-runtime`.
* @typedef {import('./lib/index.js').CreateEvaluater<JsxFunction>} CreateEvaluater
*/

/**
* @template {Jsx} [JsxFunction=Jsx]
* The type of the `jsx` function impoted from `${jsxImportSource}/jsx-runtime`.
* @typedef {import('./lib/index.js').EvaluateExpression<JsxFunction>} EvaluateExpression
*/

/**
* @template {Jsx} [JsxFunction=Jsx]
* The type of the `jsx` function impoted from `${jsxImportSource}/jsx-runtime`.
* @typedef {import('./lib/index.js').Evaluater<JsxFunction>} Evaluater
*/

/**
* @template {Jsx} [JsxFunction=Jsx]
* The type of the `jsx` function impoted from `${jsxImportSource}/jsx-runtime`.
* @typedef {import('./lib/index.js').JsxDev<JsxFunction>} JsxDev
*/

/**
* @template {Jsx} [JsxFunction=Jsx]
* The type of the `jsx` function impoted from `${jsxImportSource}/jsx-runtime`.
* @typedef {import('./lib/index.js').Options<JsxFunction>} Options
*/

/**
* @template {Jsx} [JsxFunction=Jsx]
* The type of the `jsx` function impoted from `${jsxImportSource}/jsx-runtime`.
* @typedef {import('./lib/index.js').Props<JsxFunction>} Props
*/

export {toJsxRuntime} from './lib/index.js'
65 changes: 0 additions & 65 deletions lib/components.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions lib/components.js

This file was deleted.

Loading