sveld 0.24.7 → 0.24.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ The generated definition extends the official `SvelteComponentTyped` interface e
|
|
|
38
38
|
**Button.svelte.d.ts**
|
|
39
39
|
|
|
40
40
|
```ts
|
|
41
|
-
import
|
|
41
|
+
import { SvelteComponentTyped } from "svelte";
|
|
42
42
|
import type { SvelteHTMLElements } from "svelte/elements";
|
|
43
43
|
|
|
44
44
|
type $RestProps = SvelteHTMLElements["button"];
|
|
@@ -444,7 +444,7 @@ function writeTsDefinition(component) {
|
|
|
444
444
|
(rest_props.name !== "svelte:element" || (rest_props.name === "svelte:element" && rest_props.thisValue));
|
|
445
445
|
const needsHTMLAttributes = rest_props?.type === "Element" && rest_props.name === "svelte:element" && !rest_props.thisValue;
|
|
446
446
|
return `
|
|
447
|
-
import
|
|
447
|
+
import { SvelteComponentTyped } from "svelte";${needsSvelteHTMLElements ? `import type { SvelteHTMLElements } from "svelte/elements";\n` : ""}${needsHTMLAttributes ? `import type { HTMLAttributes } from "svelte/elements";\n` : ""}
|
|
448
448
|
${genImports({ extends: _extends })}
|
|
449
449
|
${genModuleExports({ moduleExports })}
|
|
450
450
|
${getTypeDefs({ typedefs })}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sveld",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.9",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Generate TypeScript definitions for your Svelte components.",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
10
10
|
"acorn": "^8.14.1",
|
|
11
11
|
"comment-parser": "^1.4.1",
|
|
12
|
-
"prettier": "^3.
|
|
12
|
+
"prettier": "^3.7.4",
|
|
13
13
|
"rollup": "^2.79.2",
|
|
14
14
|
"rollup-plugin-svelte": "^7.2.2",
|
|
15
15
|
"svelte": "^4.2.20",
|
|
16
16
|
"svelte-preprocess": "^6.0.3",
|
|
17
|
-
"tinyglobby": "^0.2.
|
|
17
|
+
"tinyglobby": "^0.2.15",
|
|
18
18
|
"typescript": "^5.8.3"
|
|
19
19
|
},
|
|
20
20
|
"bin": {
|