Skip to content

Commit b517b0a

Browse files
committed
fix(typescript): add missing type-keyword
1 parent fd669dd commit b517b0a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"directories": {
66
"test": "test"
77
},
8+
"type": "module",
89
"scripts": {
910
"test": "web-test-runner"
1011
},
@@ -42,4 +43,4 @@
4243
"prettier": "^3.3.3",
4344
"typescript": "^5.7.0"
4445
}
45-
}
46+
}

src/reconciler/fragment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PLUSNEW_ELEMENT_TYPE, Fragment, type ShadowElement, ShadowHostElement } from "../types.js";
1+
import { PLUSNEW_ELEMENT_TYPE, Fragment, type ShadowElement, type ShadowHostElement } from "../types.js";
22
import type { Reconciler } from "./index.js";
33
import { arrayReconcileWithoutSorting, remove } from "./util.js";
44

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
7474
/* Interop Constraints */
7575
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
76-
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
76+
"verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
7777
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
7878
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
7979
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */

0 commit comments

Comments
 (0)