chore: @ts-ignore schema check

This commit is contained in:
dongchengjie 2024-05-14 01:21:28 +08:00
parent d85b8c776f
commit e8dee1ddd9
3 changed files with 8 additions and 6 deletions

View File

@ -36,7 +36,7 @@
"dayjs": "1.11.5",
"i18next": "^23.11.3",
"lodash-es": "^4.17.21",
"meta-json-schema": "1.18.4-beta4",
"meta-json-schema": "1.18.4-beta5",
"monaco-editor": "^0.47.0",
"monaco-yaml": "^5.1.1",
"nanoid": "^5.0.7",

View File

@ -62,8 +62,8 @@ importers:
specifier: ^4.17.21
version: 4.17.21
meta-json-schema:
specifier: 1.18.4-beta4
version: 1.18.4-beta4
specifier: 1.18.4-beta5
version: 1.18.4-beta5
monaco-editor:
specifier: ^0.47.0
version: 0.47.0
@ -2444,10 +2444,10 @@ packages:
integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==,
}
meta-json-schema@1.18.4-beta4:
meta-json-schema@1.18.4-beta5:
resolution:
{
integrity: sha512-CRyl8cv53LlzAKGdG5NyoUu7LwTL0NjDWqARuYEiQXPKBQPqEYh0MlZtQOTsFwfdTaaxUHZQZDAotRW7DudfxA==,
integrity: sha512-Z0+VeKEK6Oh2qAhwCg9kD9tHIoTs9ktqIuG2nV2PZ/vam6ZWCXYkN6yl0AF/75gKqSxfprDAaC8Xaun+8ta8CA==,
}
micromark-core-commonmark@2.0.1:
@ -4969,7 +4969,7 @@ snapshots:
merge-stream@2.0.0: {}
meta-json-schema@1.18.4-beta4: {}
meta-json-schema@1.18.4-beta5: {}
micromark-core-commonmark@2.0.1:
dependencies:

View File

@ -40,11 +40,13 @@ configureMonacoYaml(monaco, {
{
uri: "http://example.com/meta-json-schema.json",
fileMatch: ["**/*.clash.yaml"],
//@ts-ignore
schema: metaSchema as JSONSchema7,
},
{
uri: "http://example.com/clash-verge-merge-json-schema.json",
fileMatch: ["**/*.merge.yaml"],
//@ts-ignore
schema: mergeSchema as JSONSchema7,
},
],