Commit cb4992c8 authored by nanahira's avatar nanahira

recall function to export

parent 7701ed5d
import segment from '@satorijs/element';
export { segment as jsx };
import { Dict } from 'cosmokit';
export function jsx(
type: string,
attrs: Dict<any>,
...children: segment.Fragment[]
) {
return segment(type, attrs, ...children);
}
......@@ -8,6 +8,9 @@
"name": "satori-tsx",
"version": "1.0.3",
"license": "MIT",
"dependencies": {
"cosmokit": "^1.3.3"
},
"devDependencies": {
"@types/jest": "^29.2.3",
"@types/node": "^18.7.17",
......@@ -1892,8 +1895,7 @@
"node_modules/cosmokit": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.3.3.tgz",
"integrity": "sha512-jpEp5zDrGbycu8AdaCjmNNr2J617NAFvAU6GM8o/dJP2/pe80qTbPoflqyJzAuMhiaC6QCXlBP0KCusTsDemPQ==",
"peer": true
"integrity": "sha512-jpEp5zDrGbycu8AdaCjmNNr2J617NAFvAU6GM8o/dJP2/pe80qTbPoflqyJzAuMhiaC6QCXlBP0KCusTsDemPQ=="
},
"node_modules/cross-spawn": {
"version": "7.0.3",
......@@ -6563,8 +6565,7 @@
"cosmokit": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.3.3.tgz",
"integrity": "sha512-jpEp5zDrGbycu8AdaCjmNNr2J617NAFvAU6GM8o/dJP2/pe80qTbPoflqyJzAuMhiaC6QCXlBP0KCusTsDemPQ==",
"peer": true
"integrity": "sha512-jpEp5zDrGbycu8AdaCjmNNr2J617NAFvAU6GM8o/dJP2/pe80qTbPoflqyJzAuMhiaC6QCXlBP0KCusTsDemPQ=="
},
"cross-spawn": {
"version": "7.0.3",
......
......@@ -70,5 +70,8 @@
},
"peerDependencies": {
"@satorijs/element": "^2.1.0"
},
"dependencies": {
"cosmokit": "^1.3.3"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment