@rg-dev/stdlib 1.0.19 → 1.0.21
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-env.cjs +1 -0
- package/lib/common-env.d.cts +2 -2
- package/lib/common-env.d.ts +2 -2
- package/lib/common-env.js +1 -0
- package/package.json +1 -1
package/lib/common-env.cjs
CHANGED
package/lib/common-env.d.cts
CHANGED
|
@@ -36,7 +36,7 @@ declare class StringBuilder implements IStringBuilder {
|
|
|
36
36
|
private _chunks;
|
|
37
37
|
constructor();
|
|
38
38
|
/** {@inheritDoc IStringBuilder.append} */
|
|
39
|
-
append(text: string):
|
|
39
|
+
append(text: string): this;
|
|
40
40
|
/** {@inheritDoc IStringBuilder.toString} */
|
|
41
41
|
toString(): string;
|
|
42
42
|
}
|
|
@@ -68,6 +68,6 @@ declare function catchInline<T>(cb: Promise<T>): Promise<{
|
|
|
68
68
|
declare function doSafe(safe: () => Promise<void> | void, onError?: (error: Error) => void): void;
|
|
69
69
|
declare function isRunningOnServer(): boolean;
|
|
70
70
|
declare function useServer(fn: () => (Promise<any> | void), onError?: (err: Error) => void): Promise<any>;
|
|
71
|
-
declare function isNonEmptyString(str
|
|
71
|
+
declare function isNonEmptyString(str?: string): boolean;
|
|
72
72
|
|
|
73
73
|
export { type AsyncReturnType, type MaybeFunction, type MyFn, Optional, StringBuilder, catchInline, doSafe, isNonEmptyString, isNumber, isRunningOnServer, promiseRetry, promiseWithTimeout, sleep, useServer };
|
package/lib/common-env.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ declare class StringBuilder implements IStringBuilder {
|
|
|
36
36
|
private _chunks;
|
|
37
37
|
constructor();
|
|
38
38
|
/** {@inheritDoc IStringBuilder.append} */
|
|
39
|
-
append(text: string):
|
|
39
|
+
append(text: string): this;
|
|
40
40
|
/** {@inheritDoc IStringBuilder.toString} */
|
|
41
41
|
toString(): string;
|
|
42
42
|
}
|
|
@@ -68,6 +68,6 @@ declare function catchInline<T>(cb: Promise<T>): Promise<{
|
|
|
68
68
|
declare function doSafe(safe: () => Promise<void> | void, onError?: (error: Error) => void): void;
|
|
69
69
|
declare function isRunningOnServer(): boolean;
|
|
70
70
|
declare function useServer(fn: () => (Promise<any> | void), onError?: (err: Error) => void): Promise<any>;
|
|
71
|
-
declare function isNonEmptyString(str
|
|
71
|
+
declare function isNonEmptyString(str?: string): boolean;
|
|
72
72
|
|
|
73
73
|
export { type AsyncReturnType, type MaybeFunction, type MyFn, Optional, StringBuilder, catchInline, doSafe, isNonEmptyString, isNumber, isRunningOnServer, promiseRetry, promiseWithTimeout, sleep, useServer };
|
package/lib/common-env.js
CHANGED