cafe-utility 23.6.0 → 23.7.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.
- package/index.d.ts +5 -0
- package/index.js +1085 -1075
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -83,6 +83,10 @@ declare function asString(string: any, options?: {
|
|
|
83
83
|
min?: number;
|
|
84
84
|
max?: number;
|
|
85
85
|
}): string;
|
|
86
|
+
declare function asHexString(string: any, options?: {
|
|
87
|
+
name?: string;
|
|
88
|
+
byteLength?: number;
|
|
89
|
+
}): string;
|
|
86
90
|
declare function asSafeString(string: any, options?: {
|
|
87
91
|
name?: string;
|
|
88
92
|
min?: number;
|
|
@@ -779,6 +783,7 @@ export declare const Types: {
|
|
|
779
783
|
isUrl: typeof isUrl;
|
|
780
784
|
isNullable: typeof isNullable;
|
|
781
785
|
asString: typeof asString;
|
|
786
|
+
asHexString: typeof asHexString;
|
|
782
787
|
asSafeString: typeof asSafeString;
|
|
783
788
|
asNumber: typeof asNumber;
|
|
784
789
|
asInteger: typeof asInteger;
|