Skip to content

Commit e7248d7

Browse files
author
Thomas Jahoda
committed
much more robust auto-completion suggestions for conditional types (even when current data is invalid)
1 parent 4fd7cc6 commit e7248d7

File tree

10 files changed

+1570
-463
lines changed

10 files changed

+1570
-463
lines changed

dev/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const persistEditorStateOnChange = (key: string) => {
8080
if (v.docChanged) {
8181
ls.setItem(key, v.state.doc.toString());
8282
}
83-
}, 300)
83+
}, 300),
8484
);
8585
};
8686

@@ -161,7 +161,7 @@ const getSchema = async (val: string) => {
161161
const schemaSelect = document.getElementById("schema-selection");
162162
const schemaValue = localStorage.getItem("selectedSchema")!;
163163

164-
const setFileName = (value) => {
164+
const setFileName = (value: any) => {
165165
document.querySelectorAll("h2 code span").forEach((el) => {
166166
el.textContent = value;
167167
});

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"json-schema-library": "^9.3.5",
6868
"loglevel": "^1.9.1",
6969
"markdown-it": "^14.0.0",
70+
"radash": "^12.1.0",
7071
"vite-tsconfig-paths": "^4.3.1",
7172
"yaml": "^2.3.4"
7273
},
@@ -96,16 +97,18 @@
9697
"@evilmartians/lefthook": "^1.4.6",
9798
"@lezer/common": "^1.2.1",
9899
"@types/markdown-it": "^13.0.7",
99-
"@vitest/coverage-v8": "^0.34.6",
100+
"@vitest/coverage-v8": "^2.0.5",
100101
"codemirror-json5": "^1.0.3",
101102
"happy-dom": "^10.3.2",
103+
"jsdom": "^24.1.1",
102104
"json5": "^2.2.3",
105+
"prettier": "^3.3.3",
103106
"typedoc": "^0.24.8",
104107
"typedoc-plugin-markdown": "^3.15.3",
105-
"typescript": "^5.1.6",
106-
"vite": "^5.2.12",
107-
"vitest": "0.34.6",
108-
"vitest-dom": "^0.1.0"
108+
"typescript": "^5.5.2",
109+
"vite": "^5.3.1",
110+
"vitest": "^1.6.0",
111+
"vitest-dom": "^0.1.1"
109112
},
110113
"scripts": {
111114
"dev": "vite ./dev --port 3000",

0 commit comments

Comments
 (0)