Commit c498efce authored by nanahira's avatar nanahira

problems just comes with strict

parent 0c97a0b1
...@@ -47,6 +47,6 @@ deploy_npm: ...@@ -47,6 +47,6 @@ deploy_npm:
script: script:
- apt update;apt -y install coreutils - apt update;apt -y install coreutils
- echo $NPMRC | base64 --decode > ~/.npmrc - 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: only:
- master - master
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
"prettier": "^2.4.1", "prettier": "^2.4.1",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"ts-jest": "^27.0.7", "ts-jest": "^27.0.7",
"typescript": "^4.5.2" "typescript": "^4.8.2"
}, },
"peerDependencies": { "peerDependencies": {
"schemastery": "^3.5.1" "schemastery": "^3.5.3"
} }
}, },
"node_modules/@babel/code-frame": { "node_modules/@babel/code-frame": {
...@@ -4551,9 +4551,9 @@ ...@@ -4551,9 +4551,9 @@
} }
}, },
"node_modules/schemastery": { "node_modules/schemastery": {
"version": "3.5.1", "version": "3.5.3",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.1.tgz", "resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.3.tgz",
"integrity": "sha512-GRCXA0oFCDLAGV50Trp7u9mEcOTTRt/Vo7Clh0Z4VE3XW7NiI4epImgLJuCD18b/MRzJnJYXfTVJyF1HJcE14A==", "integrity": "sha512-bjcLEbKu00PmAJ1JIkro60oYm6tlGC+B8PNJFPtf+atoUPgi8gigl4YmREyUrjM1Laohr3AZ4ZZZcdBwrZ7YwA==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"cosmokit": "^1.2.1" "cosmokit": "^1.2.1"
...@@ -5024,9 +5024,9 @@ ...@@ -5024,9 +5024,9 @@
} }
}, },
"node_modules/typescript": { "node_modules/typescript": {
"version": "4.5.2", "version": "4.8.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz",
"integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==", "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==",
"dev": true, "dev": true,
"bin": { "bin": {
"tsc": "bin/tsc", "tsc": "bin/tsc",
...@@ -8726,9 +8726,9 @@ ...@@ -8726,9 +8726,9 @@
} }
}, },
"schemastery": { "schemastery": {
"version": "3.5.1", "version": "3.5.3",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.1.tgz", "resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.5.3.tgz",
"integrity": "sha512-GRCXA0oFCDLAGV50Trp7u9mEcOTTRt/Vo7Clh0Z4VE3XW7NiI4epImgLJuCD18b/MRzJnJYXfTVJyF1HJcE14A==", "integrity": "sha512-bjcLEbKu00PmAJ1JIkro60oYm6tlGC+B8PNJFPtf+atoUPgi8gigl4YmREyUrjM1Laohr3AZ4ZZZcdBwrZ7YwA==",
"peer": true, "peer": true,
"requires": { "requires": {
"cosmokit": "^1.2.1" "cosmokit": "^1.2.1"
...@@ -9076,9 +9076,9 @@ ...@@ -9076,9 +9076,9 @@
} }
}, },
"typescript": { "typescript": {
"version": "4.5.2", "version": "4.8.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz",
"integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==", "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==",
"dev": true "dev": true
}, },
"universalify": { "universalify": {
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"prettier": "^2.4.1", "prettier": "^2.4.1",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"ts-jest": "^27.0.7", "ts-jest": "^27.0.7",
"typescript": "^4.5.2" "typescript": "^4.8.2"
}, },
"dependencies": { "dependencies": {
"lodash": "^4.17.21", "lodash": "^4.17.21",
...@@ -59,6 +59,6 @@ ...@@ -59,6 +59,6 @@
"testEnvironment": "node" "testEnvironment": "node"
}, },
"peerDependencies": { "peerDependencies": {
"schemastery": "^3.5.1" "schemastery": "^3.5.3"
} }
} }
...@@ -15,7 +15,6 @@ import { ...@@ -15,7 +15,6 @@ import {
transformSingle, transformSingle,
} from '../utility/transformer'; } from '../utility/transformer';
import Schema from 'schemastery'; import Schema from 'schemastery';
import { kSchema } from '../utility/kschema';
import 'reflect-metadata'; import 'reflect-metadata';
export function SchemaProperty(options: SchemaOptions = {}): PropertyDecorator { export function SchemaProperty(options: SchemaOptions = {}): PropertyDecorator {
......
...@@ -25,6 +25,8 @@ export function resolveSchemaType(schemaType: SchemaType): SchemaOrReference { ...@@ -25,6 +25,8 @@ export function resolveSchemaType(schemaType: SchemaType): SchemaOrReference {
case 'any': case 'any':
return Schema.any(); return Schema.any();
case 'never': case 'never':
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return Schema.never(); return Schema.never();
case 'string': case 'string':
case String: case String:
...@@ -133,7 +135,7 @@ function schemasFromDict<T>(dict: SchemaOptionsDict<T>) { ...@@ -133,7 +135,7 @@ function schemasFromDict<T>(dict: SchemaOptionsDict<T>) {
resolvePropertySchemaFromOptions(schemaOptions), resolvePropertySchemaFromOptions(schemaOptions),
); );
} else { } 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; 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