@cripty2001/utils 0.0.21 → 0.0.22
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/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type AtLeastOne<T> = {
|
|
|
9
9
|
export type ExactlyOne<T> = {
|
|
10
10
|
[K in keyof T]: Pick<T, K> & Partial<Record<Exclude<keyof T, K>, never>>;
|
|
11
11
|
}[keyof T];
|
|
12
|
-
export type
|
|
12
|
+
export type AllRequired<T> = T extends ExactlyOne<infer U> ? ExactlyOne<Required<U>> : never;
|
|
13
13
|
export declare function getRandom(_alphabeth: string, length: number): string;
|
|
14
14
|
export declare function getRandomId(length?: number): string;
|
|
15
15
|
export declare function getRandomOtp(length?: number, char?: boolean): string;
|
package/package.json
CHANGED