@anzenjs/core
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@anzenjs/core", | ||
"version": "0.0.2", | ||
"main": "dist/src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"version": "0.0.3", | ||
"main": "cjs/src/index.js", | ||
"types": "cjs/src/index.d.ts", | ||
"scripts": { | ||
"clean": "rimraf ./dist", | ||
"clean": "rimraf ./cjs", | ||
"prebuild": "yarn clean", | ||
"build": "tsc --outDir dist", | ||
"test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts?(x)\" --watch-extensions ts,tsx --colors" | ||
"build": "ts-build . --cjs", | ||
"test": "jest" | ||
}, | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "c82e5aa232cf6c09ee308d7f2ad2cdb5e8b0c13f" | ||
"gitHead": "d30d062cf97b6d41cbe401b886aca6106111600e" | ||
} |
@@ -51,3 +51,3 @@ import { IBaseSchema, SchemaType } from './common' | ||
get _(): any { | ||
throw new Error() | ||
return undefined | ||
}, | ||
@@ -54,0 +54,0 @@ } |
@@ -38,3 +38,3 @@ import { IBaseSchema, SchemaType } from './common' | ||
get _(): any { | ||
throw new Error('') | ||
return undefined | ||
}, | ||
@@ -41,0 +41,0 @@ } |
@@ -33,3 +33,3 @@ import { IBaseSchema, SchemaType } from './common' | ||
get _(): any { | ||
throw new Error('') | ||
return undefined | ||
}, | ||
@@ -36,0 +36,0 @@ } |
@@ -32,3 +32,3 @@ import { IBaseSchema, SchemaType } from './common' | ||
get _(): any { | ||
throw new Error('') | ||
return undefined | ||
}, | ||
@@ -35,0 +35,0 @@ } |
@@ -34,3 +34,3 @@ import { IBaseSchema, SchemaType } from './common' | ||
get _(): any { | ||
throw new Error('') | ||
return undefined | ||
}, | ||
@@ -37,0 +37,0 @@ } |
@@ -34,3 +34,3 @@ import { IBaseSchema, SchemaType } from './common' | ||
get _(): any { | ||
throw new Error('') | ||
return undefined | ||
}, | ||
@@ -37,0 +37,0 @@ } |
@@ -1,3 +0,1 @@ | ||
import 'node' | ||
import { IBaseSchema, SchemaType } from './common' | ||
@@ -4,0 +2,0 @@ |
@@ -52,5 +52,5 @@ import { BrandDecorator, IBrandSchema } from './brand' | ||
export function Property(schema: SchemaLike): any { | ||
return <T>(target: Constructor<T>, key: keyof T) => { | ||
decorateClass(target, key, schema) | ||
return <T extends object>(target: T, key: keyof T) => { | ||
decorateClass<T, keyof T>(target.constructor as any, key, schema) | ||
} | ||
} |
@@ -35,3 +35,3 @@ import { IBaseSchema, SchemaType } from './common' | ||
get _(): any { | ||
throw new Error('') | ||
return undefined | ||
}, | ||
@@ -38,0 +38,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79
952
57220