Commit c498efce authored by nanahira's avatar nanahira

problems just comes with strict

parent 0c97a0b1
......@@ -47,6 +47,6 @@ deploy_npm:
script:
- apt update;apt -y install coreutils
- echo $NPMRC | base64 --decode > ~/.npmrc
- npm publish . || true
- npm publish . --access public && curl -X PUT "https://registry-direct.npmmirror.com/$(cat package.json | jq '.name' | sed 's/\"//g')/sync?sync_upstream=true" || true
only:
- master
......@@ -26,10 +26,10 @@
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.7",
"typescript": "^4.5.2"
"typescript": "^4.8.2"
},
"peerDependencies": {
"schemastery": "^3.5.1"
"schemastery": "^3.5.3"
}
},
"node_modules/@babel/code-frame": {
......@@ -4551,9 +4551,9 @@
}
},
"node_modules/schemastery": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.1.tgz",
"integrity": "sha512-GRCXA0oFCDLAGV50Trp7u9mEcOTTRt/Vo7Clh0Z4VE3XW7NiI4epImgLJuCD18b/MRzJnJYXfTVJyF1HJcE14A==",
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.3.tgz",
"integrity": "sha512-bjcLEbKu00PmAJ1JIkro60oYm6tlGC+B8PNJFPtf+atoUPgi8gigl4YmREyUrjM1Laohr3AZ4ZZZcdBwrZ7YwA==",
"peer": true,
"dependencies": {
"cosmokit": "^1.2.1"
......@@ -5024,9 +5024,9 @@
}
},
"node_modules/typescript": {
"version": "4.5.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz",
"integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==",
"version": "4.8.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz",
"integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
......@@ -8726,9 +8726,9 @@
}
},
"schemastery": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.1.tgz",
"integrity": "sha512-GRCXA0oFCDLAGV50Trp7u9mEcOTTRt/Vo7Clh0Z4VE3XW7NiI4epImgLJuCD18b/MRzJnJYXfTVJyF1HJcE14A==",
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.3.tgz",
"integrity": "sha512-bjcLEbKu00PmAJ1JIkro60oYm6tlGC+B8PNJFPtf+atoUPgi8gigl4YmREyUrjM1Laohr3AZ4ZZZcdBwrZ7YwA==",
"peer": true,
"requires": {
"cosmokit": "^1.2.1"
......@@ -9076,9 +9076,9 @@
}
},
"typescript": {
"version": "4.5.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz",
"integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==",
"version": "4.8.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz",
"integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==",
"dev": true
},
"universalify": {
......
......@@ -34,7 +34,7 @@
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.7",
"typescript": "^4.5.2"
"typescript": "^4.8.2"
},
"dependencies": {
"lodash": "^4.17.21",
......@@ -59,6 +59,6 @@
"testEnvironment": "node"
},
"peerDependencies": {
"schemastery": "^3.5.1"
"schemastery": "^3.5.3"
}
}
......@@ -15,7 +15,6 @@ import {
transformSingle,
} from '../utility/transformer';
import Schema from 'schemastery';
import { kSchema } from '../utility/kschema';
import 'reflect-metadata';
export function SchemaProperty(options: SchemaOptions = {}): PropertyDecorator {
......
......@@ -25,6 +25,8 @@ export function resolveSchemaType(schemaType: SchemaType): SchemaOrReference {
case 'any':
return Schema.any();
case 'never':
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return Schema.never();
case 'string':
case String:
......@@ -133,7 +135,7 @@ function schemasFromDict<T>(dict: SchemaOptionsDict<T>) {
resolvePropertySchemaFromOptions(schemaOptions),
);
} else {
schema.dict[_key] = schemaDict[key] as Schema<T[keyof T]>;
schema.dict[_key] = schemaDict[key] as unknown as Schema<T[keyof T]>;
}
}
return schema;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment