@insanedev2478/tstoolset 1.0.0 → 1.1.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/README.md +4 -0
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
package/README.md
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -19,4 +19,11 @@ export type PromiseType<T = any> = Promise<T>;
|
|
|
19
19
|
export type UUIDV4 = `${String}-${String}-4${String}-${"8" | "9" | "A" | "B"}${String}-${String}`;
|
|
20
20
|
type TrustedEmailProviders = "gmail.com" | "yahoo.com" | "yahoo.in" | "outlook.com" | "live.com" | "hotmail.com" | "protonmail.com" | "icloud.com" | "aol.com";
|
|
21
21
|
export type TrustableEmail = `${String}@${TrustedEmailProviders}`;
|
|
22
|
+
export type Exact<T, U extends T = T> = T & {
|
|
23
|
+
[K in Exclude<keyof U, keyof T>]: never;
|
|
24
|
+
};
|
|
25
|
+
declare const brand: unique symbol;
|
|
26
|
+
export type Brand<T, Name> = T & {
|
|
27
|
+
[brand]: Name;
|
|
28
|
+
};
|
|
22
29
|
export {};
|
package/package.json
CHANGED