wenay-common 1.0.14 → 1.0.16
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/lib/Common/Common.d.ts +1 -4
- package/lib/Common/Time.d.ts +1 -1
- package/lib/index.d.ts +14 -1
- package/lib/index.js +29 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/Common/Common.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Immutable, KeysWithoutType, MutableFull, ReadonlyFull } from "./BaseTypes";
|
|
1
|
+
import { Immutable, KeysWithoutType, Mutable, MutableFull, ReadonlyFull } from "./BaseTypes";
|
|
2
2
|
export declare function GetEnumKeys<TT extends {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}>(T: TT): readonly (keyof typeof T)[];
|
|
5
5
|
type const_Date = Omit<Date, "setTime" | "setFullYear" | "setMonth" | "setDate" | "setHours" | "setMinutes" | "setSeconds" | "setMilliseconds" | "setUTCFullYear" | "setUTCMonth" | "setUTCDate" | "setUTCHours" | "setUTCMinutes" | "setUTCSeconds" | "setUTCMilliseconds">;
|
|
6
6
|
export declare function isDate<T>(value: T & (Extract<T, const_Date>)): value is Extract<T, const_Date>;
|
|
7
|
-
export type Mutable<T> = {
|
|
8
|
-
-readonly [P in keyof T]: T[P];
|
|
9
|
-
};
|
|
10
7
|
export declare function shallowClone<T>(val: T): Mutable<T>;
|
|
11
8
|
export declare function _deepClone<T>(src: T, map?: Map<object, object>): T;
|
|
12
9
|
export declare function deepClone<T>(object: T): T;
|
package/lib/Common/Time.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export declare class TF implements IPeriod {
|
|
|
77
77
|
private constructor();
|
|
78
78
|
static get<T extends string>(name: T): TF | (T extends __E_TF_KEY ? never : null);
|
|
79
79
|
static getAsserted(name: string): TF;
|
|
80
|
-
static fromName<T extends string>(name: T): TF | (T extends "
|
|
80
|
+
static fromName<T extends string>(name: T): TF | (T extends "S1" | "S2" | "S3" | "S4" | "S5" | "S6" | "S10" | "S12" | "S15" | "S20" | "S30" | "M1" | "M2" | "M3" | "M4" | "M5" | "M6" | "M10" | "M12" | "M15" | "M20" | "M30" | "H1" | "H2" | "H3" | "H4" | "H6" | "H8" | "H12" | "D1" | "W1" ? never : null);
|
|
81
81
|
static fromSec(value: number): TF | null;
|
|
82
82
|
static readonly all: readonly TF[];
|
|
83
83
|
private static readonly _mapBySec;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
export *
|
|
1
|
+
export * from "./Common/BaseTypes";
|
|
2
|
+
export * from "./Common/Common";
|
|
3
|
+
export * from "./Common/Time";
|
|
4
|
+
export * from "./Common/Color";
|
|
5
|
+
export * from "./Common/ListNodeAnd";
|
|
6
|
+
export * from "./Common/Math";
|
|
7
|
+
export * from "./Common/List";
|
|
8
|
+
export * as BaseTypes from "./Common/BaseTypes";
|
|
9
|
+
export * as Common from "./Common/Common";
|
|
10
|
+
export * as Time from "./Common/Time";
|
|
11
|
+
export * as Color from "./Common/Color";
|
|
12
|
+
export * as ListNodeAnd from "./Common/ListNodeAnd";
|
|
13
|
+
export * as Math from "./Common/Math";
|
|
14
|
+
export * as List from "./Common/List";
|
|
2
15
|
export { CListNodeAnd, iListNodeMini } from "./Common/ListNodeAnd";
|
|
3
16
|
export declare function test(): void;
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.test = exports.CListNodeAnd = exports.
|
|
17
|
+
exports.test = exports.CListNodeAnd = exports.List = exports.Math = exports.ListNodeAnd = exports.Color = exports.Time = exports.Common = exports.BaseTypes = void 0;
|
|
4
18
|
const ListNodeAnd_1 = require("./Common/ListNodeAnd");
|
|
5
|
-
|
|
19
|
+
__exportStar(require("./Common/BaseTypes"), exports);
|
|
20
|
+
__exportStar(require("./Common/Common"), exports);
|
|
21
|
+
__exportStar(require("./Common/Time"), exports);
|
|
22
|
+
__exportStar(require("./Common/Color"), exports);
|
|
23
|
+
__exportStar(require("./Common/ListNodeAnd"), exports);
|
|
24
|
+
__exportStar(require("./Common/Math"), exports);
|
|
25
|
+
__exportStar(require("./Common/List"), exports);
|
|
26
|
+
exports.BaseTypes = require("./Common/BaseTypes");
|
|
27
|
+
exports.Common = require("./Common/Common");
|
|
28
|
+
exports.Time = require("./Common/Time");
|
|
29
|
+
exports.Color = require("./Common/Color");
|
|
30
|
+
exports.ListNodeAnd = require("./Common/ListNodeAnd");
|
|
31
|
+
exports.Math = require("./Common/Math");
|
|
32
|
+
exports.List = require("./Common/List");
|
|
6
33
|
var ListNodeAnd_2 = require("./Common/ListNodeAnd");
|
|
7
34
|
Object.defineProperty(exports, "CListNodeAnd", { enumerable: true, get: function () { return ListNodeAnd_2.CListNodeAnd; } });
|
|
8
35
|
function test() {
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AASA,sDAAiE;AAKjE,qDAAmC;AACnC,kDAAgC;AAChC,gDAA8B;AAC9B,iDAA+B;AAC/B,uDAAqC;AACrC,gDAA8B;AAC9B,gDAA8B;AAE9B,kDAAgD;AAChD,4CAA0C;AAC1C,wCAAsC;AACtC,0CAAwC;AACxC,sDAAoD;AACpD,wCAAsC;AACtC,wCAAsC;AAEtC,oDAAiE;AAAzD,2GAAA,YAAY,OAAA;AAEpB,SAAgB,IAAI;IAChB,MAAM,EAAE,GAAG,IAAI,0BAAY,EAAE,CAAA;IAC7B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;AAC1B,CAAC;AAJD,oBAIC"}
|