@pdg/data 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +4 -12
- package/dist/index.js +4 -12
- package/dist/lv.d.ts +12 -2
- package/dist/vl.d.ts +12 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -37,23 +37,15 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
37
37
|
var e = new Error(message);
|
|
38
38
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
39
39
|
};/********************************************************************************************************************
|
|
40
|
-
*
|
|
41
|
-
* @param label - label
|
|
42
|
-
* @param value - value
|
|
43
|
-
* @param other - 기타 속성
|
|
44
|
-
* @returns 생성된 객체
|
|
40
|
+
* 구현
|
|
45
41
|
* ******************************************************************************************************************/
|
|
46
42
|
function lv(label, value, other) {
|
|
47
|
-
return __assign({ label: label, value: value }
|
|
43
|
+
return __assign(__assign({}, other), { label: label, value: value });
|
|
48
44
|
}/********************************************************************************************************************
|
|
49
|
-
*
|
|
50
|
-
* @param value - value
|
|
51
|
-
* @param label - label
|
|
52
|
-
* @param other - 기타 속성
|
|
53
|
-
* @returns 생성된 객체
|
|
45
|
+
* 구현
|
|
54
46
|
* ******************************************************************************************************************/
|
|
55
47
|
function vl(value, label, other) {
|
|
56
|
-
return __assign({ value: value, label: label }
|
|
48
|
+
return __assign(__assign({}, other), { value: value, label: label });
|
|
57
49
|
}var index = {
|
|
58
50
|
copy: copy,
|
|
59
51
|
lv: lv,
|
package/dist/index.js
CHANGED
|
@@ -37,23 +37,15 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
37
37
|
var e = new Error(message);
|
|
38
38
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
39
39
|
};/********************************************************************************************************************
|
|
40
|
-
*
|
|
41
|
-
* @param label - label
|
|
42
|
-
* @param value - value
|
|
43
|
-
* @param other - 기타 속성
|
|
44
|
-
* @returns 생성된 객체
|
|
40
|
+
* 구현
|
|
45
41
|
* ******************************************************************************************************************/
|
|
46
42
|
function lv(label, value, other) {
|
|
47
|
-
return __assign({ label: label, value: value }
|
|
43
|
+
return __assign(__assign({}, other), { label: label, value: value });
|
|
48
44
|
}/********************************************************************************************************************
|
|
49
|
-
*
|
|
50
|
-
* @param value - value
|
|
51
|
-
* @param label - label
|
|
52
|
-
* @param other - 기타 속성
|
|
53
|
-
* @returns 생성된 객체
|
|
45
|
+
* 구현
|
|
54
46
|
* ******************************************************************************************************************/
|
|
55
47
|
function vl(value, label, other) {
|
|
56
|
-
return __assign({ value: value, label: label }
|
|
48
|
+
return __assign(__assign({}, other), { value: value, label: label });
|
|
57
49
|
}var index = {
|
|
58
50
|
copy: copy,
|
|
59
51
|
lv: lv,
|
package/dist/lv.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/********************************************************************************************************************
|
|
2
|
+
* {label, value} 객체 생성하여 반환하는 함수
|
|
3
|
+
* @param label - label
|
|
4
|
+
* @param value - value
|
|
5
|
+
* @returns 생성된 객체
|
|
6
|
+
* ******************************************************************************************************************/
|
|
7
|
+
export declare function lv<L, const V>(label: L, value: V): {
|
|
8
|
+
label: L;
|
|
9
|
+
value: V;
|
|
10
|
+
};
|
|
1
11
|
/********************************************************************************************************************
|
|
2
12
|
* {label, value, ...other} 객체 생성하여 반환하는 함수
|
|
3
13
|
* @param label - label
|
|
@@ -6,8 +16,8 @@
|
|
|
6
16
|
* @returns 생성된 객체
|
|
7
17
|
* ******************************************************************************************************************/
|
|
8
18
|
export declare function lv<L, const V, Other extends {
|
|
9
|
-
[
|
|
10
|
-
}>(label: L, value: V, other
|
|
19
|
+
[K in 'label' | 'value']?: never;
|
|
20
|
+
} & object>(label: L, value: V, other: Other): {
|
|
11
21
|
label: L;
|
|
12
22
|
value: V;
|
|
13
23
|
} & Other;
|
package/dist/vl.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/********************************************************************************************************************
|
|
2
|
+
* {value, label} 객체 생성하여 반환하는 함수
|
|
3
|
+
* @param value - value
|
|
4
|
+
* @param label - label
|
|
5
|
+
* @returns 생성된 객체
|
|
6
|
+
* ******************************************************************************************************************/
|
|
7
|
+
export declare function vl<const V, L>(value: V, label: L): {
|
|
8
|
+
value: V;
|
|
9
|
+
label: L;
|
|
10
|
+
};
|
|
1
11
|
/********************************************************************************************************************
|
|
2
12
|
* {value, label, ...other} 객체 생성하여 반환하는 함수
|
|
3
13
|
* @param value - value
|
|
@@ -6,8 +16,8 @@
|
|
|
6
16
|
* @returns 생성된 객체
|
|
7
17
|
* ******************************************************************************************************************/
|
|
8
18
|
export declare function vl<const V, L, Other extends {
|
|
9
|
-
[
|
|
10
|
-
}>(value: V, label: L, other?: Other): {
|
|
19
|
+
[K in 'label' | 'value']?: never;
|
|
20
|
+
} & object>(value: V, label: L, other?: Other): {
|
|
11
21
|
value: V;
|
|
12
22
|
label: L;
|
|
13
23
|
} & Other;
|