@rg-dev/stdlib 1.0.19 → 1.0.20
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.d.cts +1 -1
- package/lib/common-env.d.ts +1 -1
- package/package.json +1 -1
package/lib/common-env.d.cts
CHANGED
|
@@ -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
|
@@ -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 };
|