utilium 2.3.9 → 2.3.11

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/dist/string.d.ts CHANGED
@@ -10,15 +10,15 @@ export type Trim<T extends string> = T extends `${Whitespace}${infer R extends s
10
10
  /**
11
11
  * Encodes a UTF-8 string into a buffer
12
12
  */
13
- export declare function encodeUTF8(input: string): Uint8Array;
13
+ export declare function encodeUTF8(input: string): Uint8Array<ArrayBuffer>;
14
14
  /**
15
15
  * Decodes a UTF-8 string from a buffer
16
16
  */
17
17
  export declare function decodeUTF8(input?: Uint8Array): string;
18
- export declare function encodeASCII(input: string): Uint8Array;
18
+ export declare function encodeASCII(input: string): Uint8Array<ArrayBuffer>;
19
19
  export declare function decodeASCII(input: Uint8Array): string;
20
20
  export type UUID = `${string}-${string}-${string}-${string}-${string}`;
21
21
  export declare function decodeUUID(uuid: Uint8Array): UUID;
22
- export declare function encodeUUID(uuid: UUID): Uint8Array;
22
+ export declare function encodeUUID(uuid: UUID): Uint8Array<ArrayBuffer>;
23
23
  export declare function stringifyUUID(uuid: bigint): UUID;
24
24
  export declare function parseUUID(uuid: UUID): bigint;
package/dist/types.d.ts CHANGED
@@ -36,7 +36,7 @@ export type RequiredProperties<T extends object, K extends keyof T = keyof T> =
36
36
  * @see https://dev.to/tmhao2005/ts-useful-advanced-types-3k5e
37
37
  */
38
38
  export type DeepRequired<T> = {
39
- [K in keyof T]: Required<DeepRequired<T[K]>>;
39
+ [K in keyof T]-?: DeepRequired<T[K]>;
40
40
  };
41
41
  /**
42
42
  * @see https://dev.to/tmhao2005/ts-useful-advanced-types-3k5e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utilium",
3
- "version": "2.3.9",
3
+ "version": "2.3.11",
4
4
  "description": "Typescript utilities",
5
5
  "funding": {
6
6
  "type": "individual",