node-result
Advanced tools
Comparing version 12.0.0 to 12.0.1
@@ -30,3 +30,3 @@ export declare type TResult<DataType, ErrorType> = ResultOK<DataType> | ResultFAIL<ErrorType>; | ||
export declare const fail: <ErrorType>(error: ErrorType) => ResultFAIL<ErrorType>; | ||
export declare function tryCatch<TargetType, DataType, ErrorType>(target: TargetType, property: string, descriptor: TypedPropertyDescriptor<(...args: never[]) => DataType | ResultFAIL<ErrorType>>): TypedPropertyDescriptor<(...args: never[]) => DataType | ResultFAIL<ErrorType>>; | ||
export declare function tryCatchAsync<TargetType, DataType, ErrorType>(target: TargetType, property: string, descriptor: TypedPropertyDescriptor<(...args: never[]) => Promise<DataType | ResultFAIL<ErrorType>>>): TypedPropertyDescriptor<(...args: never[]) => Promise<DataType | ResultFAIL<ErrorType>>>; | ||
export declare function tryCatch<TargetType, DataType, ErrorType>(target: TargetType, property: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => DataType | ResultFAIL<ErrorType>>): TypedPropertyDescriptor<(...args: any[]) => DataType | ResultFAIL<ErrorType>>; | ||
export declare function tryCatchAsync<TargetType, DataType, ErrorType>(target: TargetType, property: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => Promise<DataType | ResultFAIL<ErrorType>>>): TypedPropertyDescriptor<(...args: any[]) => Promise<DataType | ResultFAIL<ErrorType>>>; |
{ | ||
"name": "node-result", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"description": "result", | ||
@@ -14,3 +14,2 @@ "keywords": [ | ||
"repository": "github:WatchDG/node-result", | ||
"private": false, | ||
"main": "lib/index.js", | ||
@@ -26,19 +25,18 @@ "types": "lib/index.d.ts", | ||
"build": "npx tsc", | ||
"prepare": "npm run build", | ||
"_postinstall": "husky install", | ||
"prepublishOnly": "pinst --disable", | ||
"prepare": "npm run lint && npm run build && npm run test", | ||
"postpublish": "pinst --enable" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@types/jest": "^26.0.20", | ||
"@typescript-eslint/eslint-plugin": "^4.12.0", | ||
"@typescript-eslint/parser": "^4.12.0", | ||
"eslint": "^7.17.0", | ||
"husky": "^5.0.6", | ||
"@types/jest": "^26.0.23", | ||
"@typescript-eslint/eslint-plugin": "^4.24.0", | ||
"@typescript-eslint/parser": "^4.24.0", | ||
"eslint": "^7.26.0", | ||
"husky": "^6.0.0", | ||
"jest": "^26.6.3", | ||
"pinst": "^2.1.1", | ||
"prettier": "^2.2.1", | ||
"ts-jest": "^26.4.4", | ||
"typescript": "^4.2.2" | ||
"prettier": "^2.3.0", | ||
"ts-jest": "^26.5.6", | ||
"typescript": "^4.2.4" | ||
}, | ||
@@ -45,0 +43,0 @@ "jest": { |
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
7650
132