Comparing version 0.20.2 to 0.20.3
@@ -133,6 +133,4 @@ "use strict"; | ||
} | ||
const mapEvent = (name) => { | ||
if (["cut", "copy", "paste"].includes(name)) { | ||
return "DocumentAndElementEventHandlersEventMap"; | ||
} | ||
const mapEvent = () => { | ||
// lib.dom.d.ts should map event types by name. | ||
return "WindowEventMap"; | ||
@@ -154,3 +152,3 @@ }; | ||
} | ||
return `${description}${clampKey(event.name)}: ${event.type === "dispatched" ? createDispatchedEvent(event.detail) : `${mapEvent(event.name)}["${event.name}"]`};\n`; | ||
return `${description}${clampKey(event.name)}: ${event.type === "dispatched" ? createDispatchedEvent(event.detail) : `${mapEvent()}["${event.name}"]`};\n`; | ||
}) | ||
@@ -157,0 +155,0 @@ .join(""); |
{ | ||
"name": "sveld", | ||
"version": "0.20.2", | ||
"version": "0.20.3", | ||
"license": "Apache-2.0", | ||
@@ -10,2 +10,3 @@ "description": "Generate TypeScript definitions for your Svelte components.", | ||
"test": "bun test", | ||
"test:fixtures-types": "bun --bun tsc --project tsconfig.fixtures.json", | ||
"test:e2e": "bun tests/test-e2e.ts", | ||
@@ -28,3 +29,3 @@ "format": "bun --bun prettier --write \".\" --cache", | ||
"devDependencies": { | ||
"@types/bun": "^1.1.9", | ||
"@types/bun": "^1.1.12", | ||
"@types/jest": "^29.5.13", | ||
@@ -31,0 +32,0 @@ "@types/prettier": "^2.7.3", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104402
1961