@insanedev2478/tstoolset 1.0.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/dist/index.d.ts +22 -0
- package/package.json +33 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type String = string;
|
|
2
|
+
export type Number = number;
|
|
3
|
+
export type Boolean = boolean;
|
|
4
|
+
export type Undefined = undefined;
|
|
5
|
+
export type Null = null;
|
|
6
|
+
export type Symbol = symbol;
|
|
7
|
+
export type BigInt = bigint;
|
|
8
|
+
export type Primitive = String | Number | Boolean | Undefined | Null | Symbol | BigInt;
|
|
9
|
+
export type Obj<T = any> = {
|
|
10
|
+
[key: string]: T;
|
|
11
|
+
};
|
|
12
|
+
export type Arr<T = any> = T[];
|
|
13
|
+
export type Func<T = any> = (...args: any[]) => T;
|
|
14
|
+
export type Any = any;
|
|
15
|
+
export type Unknown = unknown;
|
|
16
|
+
export type Never = never;
|
|
17
|
+
export type Void = void;
|
|
18
|
+
export type PromiseType<T = any> = Promise<T>;
|
|
19
|
+
export type UUIDV4 = `${String}-${String}-4${String}-${"8" | "9" | "A" | "B"}${String}-${String}`;
|
|
20
|
+
type TrustedEmailProviders = "gmail.com" | "yahoo.com" | "yahoo.in" | "outlook.com" | "live.com" | "hotmail.com" | "protonmail.com" | "icloud.com" | "aol.com";
|
|
21
|
+
export type TrustableEmail = `${String}@${TrustedEmailProviders}`;
|
|
22
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@insanedev2478/tstoolset",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Collection of handy TypeScript types, ranging from primitives like numbers all the way to UUIDs and Email Addresses. ",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc --emitDeclarationOnly --declaration --outDir dist ./src/index.ts",
|
|
19
|
+
"prepublishOnly": "npm run build"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"typescript",
|
|
23
|
+
"types",
|
|
24
|
+
"utility-types",
|
|
25
|
+
"typescript-types",
|
|
26
|
+
"typescript-utilities",
|
|
27
|
+
"typescript-toolkit",
|
|
28
|
+
"ts-toolkit",
|
|
29
|
+
"type-level",
|
|
30
|
+
"zero-runtime",
|
|
31
|
+
"tstoolset"
|
|
32
|
+
]
|
|
33
|
+
}
|