revdev 0.87.0 → 0.89.0
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.
|
@@ -13,12 +13,13 @@ export interface BoWord {
|
|
|
13
13
|
tags?: string[];
|
|
14
14
|
}
|
|
15
15
|
export interface BoWordEntity {
|
|
16
|
-
|
|
16
|
+
id: string;
|
|
17
17
|
text: string;
|
|
18
18
|
languageCode: string;
|
|
19
19
|
created: string;
|
|
20
20
|
mode?: string;
|
|
21
21
|
rate?: number;
|
|
22
|
+
tags?: string[];
|
|
22
23
|
}
|
|
23
24
|
export interface BoWordImage {
|
|
24
25
|
wordId: string;
|
|
@@ -12,3 +12,7 @@ export interface BoCreateWordRequest extends FeCreateWordRequest {
|
|
|
12
12
|
export interface BoUpdateWordRequest extends Pick<FeCreateWordRequest, "mode" | "rate"> {
|
|
13
13
|
id: string;
|
|
14
14
|
}
|
|
15
|
+
export interface BoUpdateWordTagRequest {
|
|
16
|
+
wordId: string | string[];
|
|
17
|
+
tagCode: string | string[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArrayUtil = void 0;
|
|
4
|
+
var ArrayUtil = /** @class */ (function () {
|
|
5
|
+
function ArrayUtil() {
|
|
6
|
+
}
|
|
7
|
+
ArrayUtil.toArray = function (item) {
|
|
8
|
+
return Array.isArray(item) ? item : [item];
|
|
9
|
+
};
|
|
10
|
+
return ArrayUtil;
|
|
11
|
+
}());
|
|
12
|
+
exports.ArrayUtil = ArrayUtil;
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/index.js
CHANGED