@cripty2001/utils 0.0.20 → 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -9,6 +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 AllRequired<T> = T extends ExactlyOne<infer U> ? ExactlyOne<Required<U>> : never;
12
13
  export declare function getRandom(_alphabeth: string, length: number): string;
13
14
  export declare function getRandomId(length?: number): string;
14
15
  export declare function getRandomOtp(length?: number, char?: boolean): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
5
5
  "homepage": "https://github.com/cripty2001/utils#readme",
6
6
  "bugs": {