@jeniex/utils 1.0.18 → 1.0.19
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/browser/index.d.ts +4 -1
- package/node/index.d.ts +4 -1
- package/package.json +1 -1
package/browser/index.d.ts
CHANGED
|
@@ -37,6 +37,9 @@ declare function sleep(milliSeconds: number): Promise<void>;
|
|
|
37
37
|
|
|
38
38
|
type Nullable<T> = T | null | undefined;
|
|
39
39
|
type Fn<T = void, U = any> = (param?: U) => T;
|
|
40
|
+
type Prettify<T> = {
|
|
41
|
+
[KeyType in keyof T]: T[KeyType];
|
|
42
|
+
} & {};
|
|
40
43
|
|
|
41
44
|
declare function alert(message?: string): void;
|
|
42
45
|
declare function confirm(message: string): boolean;
|
|
@@ -129,4 +132,4 @@ type Options = Record<string, FlagValue>;
|
|
|
129
132
|
|
|
130
133
|
declare function getOptions(flags: Flag[]): Promise<Options>;
|
|
131
134
|
|
|
132
|
-
export { $, $$, Flag, Fn, Nullable, addStyle, alert, asserted, confirm, fish, fishResponse, fishX, fishXResponse, getOptions, getSearchParam, imageLoad, isBoolean, isFalsy, isFunction, isNotNullish, isNullish, isNumber, isObject, isString, isTruthy, join, logId, noop, pageLoad, prompt, remove, scriptName, setSearchParam, sleep, tabURL, toString };
|
|
135
|
+
export { $, $$, Flag, Fn, Nullable, Prettify, addStyle, alert, asserted, confirm, fish, fishResponse, fishX, fishXResponse, getOptions, getSearchParam, imageLoad, isBoolean, isFalsy, isFunction, isNotNullish, isNullish, isNumber, isObject, isString, isTruthy, join, logId, noop, pageLoad, prompt, remove, scriptName, setSearchParam, sleep, tabURL, toString };
|
package/node/index.d.ts
CHANGED
|
@@ -37,6 +37,9 @@ declare function sleep(milliSeconds: number): Promise<void>;
|
|
|
37
37
|
|
|
38
38
|
type Nullable<T> = T | null | undefined;
|
|
39
39
|
type Fn<T = void, U = any> = (param?: U) => T;
|
|
40
|
+
type Prettify<T> = {
|
|
41
|
+
[KeyType in keyof T]: T[KeyType];
|
|
42
|
+
} & {};
|
|
40
43
|
|
|
41
44
|
interface ListBaseOpt {
|
|
42
45
|
/** The absolute path of the target folder. */
|
|
@@ -92,4 +95,4 @@ declare function removeFiles({ folderPath, filter }: RemoveFilesOpt): Promise<vo
|
|
|
92
95
|
|
|
93
96
|
declare function readJSON<T = object>(filePath: string, withComments?: boolean): Promise<T>;
|
|
94
97
|
|
|
95
|
-
export { Fn, Nullable, asserted, isBoolean, isFalsy, isFunction, isNotNullish, isNullish, isNumber, isObject, isString, isTruthy, join, listFiles, listFolders, listFoldersSync, noop, readJSON, remove, removeFiles, sleep, toString };
|
|
98
|
+
export { Fn, Nullable, Prettify, asserted, isBoolean, isFalsy, isFunction, isNotNullish, isNullish, isNumber, isObject, isString, isTruthy, join, listFiles, listFolders, listFoldersSync, noop, readJSON, remove, removeFiles, sleep, toString };
|