@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 ADDED
@@ -0,0 +1,4 @@
1
+ ## Installation
2
+
3
+ ```sh
4
+ npm install @insanedev2478/tstoolset
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insanedev2478/tstoolset",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Collection of handy TypeScript types, ranging from primitives like numbers all the way to UUIDs and Email Addresses. ",
5
5
  "license": "MIT",
6
6
  "type": "module",