@simplism/core
Advanced tools
Comparing version 10.3.68 to 10.3.69
@@ -1,4 +0,1 @@ | ||
export declare type ChainedRequired<T> = { | ||
[P in keyof T]-?: ChainedRequired<T[P]>; | ||
}; | ||
export declare function optional<T, R>(obj: T, fn: (o: ChainedRequired<NonNullable<T>>) => R): R | undefined; | ||
export declare function optional<T, R>(obj: T, fn: (o: NonNullable<T>) => R): R | undefined; |
{ | ||
"name": "@simplism/core", | ||
"version": "10.3.68", | ||
"version": "10.3.69", | ||
"description": "Simplism Core Package", | ||
@@ -5,0 +5,0 @@ "repository": "github:kslhunter/simplism", |
@@ -191,3 +191,3 @@ import "./ArrayExt"; | ||
const propertyDisplayNames = result.map(item1 => defsObj[item1.propertyKey!]["displayName"]); | ||
throw new Error(`입력값이 잘못되었습니다.\r\n - ${propertyDisplayNames.join("', '")}'`); | ||
throw new Error(`입력값이 잘못되었습니다.\n - '${propertyDisplayNames.join("', '")}'`); | ||
} | ||
@@ -209,4 +209,4 @@ | ||
if (errorMessages.length > 0) { | ||
throw new Error("입력값이 잘못되었습니다.\r\n" + errorMessages.join("\r\n")); | ||
throw new Error("입력값이 잘못되었습니다.\n" + errorMessages.join("\n")); | ||
} | ||
}; |
@@ -189,3 +189,3 @@ import {DateTime} from "../type/DateTime"; | ||
this.config.color.log, | ||
...logData | ||
...logData.mapMany(item => ["\r\n", item]) | ||
); | ||
@@ -192,0 +192,0 @@ } |
@@ -1,4 +0,4 @@ | ||
export type ChainedRequired<T> = { [P in keyof T]-?: ChainedRequired<T[P]> }; | ||
/*export type ChainedRequired<T> = { [P in keyof T]-?: ChainedRequired<T[P]> };*/ | ||
export function optional<T, R>(obj: T, fn: (o: ChainedRequired<NonNullable<T>>) => R): R | undefined { | ||
export function optional<T, R>(obj: T, fn: (o: NonNullable<T>/*ChainedRequired<NonNullable<T>>*/) => R): R | undefined { | ||
try { | ||
@@ -22,2 +22,2 @@ return fn(obj as any); | ||
return cursor;*/ | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
237698
3344