@vnodes/types 0.1.1 → 0.1.4

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 (71) hide show
  1. package/README.md +3 -3
  2. package/dist/index.d.ts +3 -13
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +4 -14
  5. package/dist/index.js.map +1 -1
  6. package/dist/lib/common.d.ts +24 -0
  7. package/dist/lib/common.d.ts.map +1 -0
  8. package/dist/lib/common.js +3 -0
  9. package/dist/lib/common.js.map +1 -0
  10. package/dist/{names → lib}/names.d.ts +1 -2
  11. package/dist/lib/names.d.ts.map +1 -0
  12. package/dist/lib/names.js.map +1 -0
  13. package/dist/lib/types.d.ts +2 -0
  14. package/dist/lib/types.d.ts.map +1 -0
  15. package/dist/lib/types.js +5 -0
  16. package/dist/lib/types.js.map +1 -0
  17. package/dist/package.json +65 -0
  18. package/package.json +39 -32
  19. package/assets/favicon.png +0 -0
  20. package/bin/version.mjs +0 -12
  21. package/dist/auth/access-token-payload.d.ts +0 -5
  22. package/dist/auth/access-token-payload.d.ts.map +0 -1
  23. package/dist/auth/access-token-payload.js +0 -3
  24. package/dist/auth/access-token-payload.js.map +0 -1
  25. package/dist/auth/user-credential.d.ts +0 -5
  26. package/dist/auth/user-credential.d.ts.map +0 -1
  27. package/dist/auth/user-credential.js +0 -3
  28. package/dist/auth/user-credential.js.map +0 -1
  29. package/dist/common/any.d.ts +0 -6
  30. package/dist/common/any.d.ts.map +0 -1
  31. package/dist/common/any.js +0 -5
  32. package/dist/common/any.js.map +0 -1
  33. package/dist/common/either.d.ts +0 -6
  34. package/dist/common/either.d.ts.map +0 -1
  35. package/dist/common/either.js +0 -3
  36. package/dist/common/either.js.map +0 -1
  37. package/dist/common/filter-fn.d.ts +0 -2
  38. package/dist/common/filter-fn.d.ts.map +0 -1
  39. package/dist/common/filter-fn.js +0 -3
  40. package/dist/common/filter-fn.js.map +0 -1
  41. package/dist/common/keys.d.ts +0 -2
  42. package/dist/common/keys.d.ts.map +0 -1
  43. package/dist/common/keys.js +0 -3
  44. package/dist/common/keys.js.map +0 -1
  45. package/dist/common/record.d.ts +0 -5
  46. package/dist/common/record.d.ts.map +0 -1
  47. package/dist/common/record.js +0 -3
  48. package/dist/common/record.js.map +0 -1
  49. package/dist/common/some.d.ts +0 -2
  50. package/dist/common/some.d.ts.map +0 -1
  51. package/dist/common/some.js +0 -3
  52. package/dist/common/some.js.map +0 -1
  53. package/dist/common/type.d.ts +0 -5
  54. package/dist/common/type.d.ts.map +0 -1
  55. package/dist/common/type.js +0 -3
  56. package/dist/common/type.js.map +0 -1
  57. package/dist/dev/package-json.d.ts +0 -45
  58. package/dist/dev/package-json.d.ts.map +0 -1
  59. package/dist/dev/package-json.js +0 -5
  60. package/dist/dev/package-json.js.map +0 -1
  61. package/dist/input/error-message.d.ts +0 -18
  62. package/dist/input/error-message.d.ts.map +0 -1
  63. package/dist/input/error-message.js +0 -3
  64. package/dist/input/error-message.js.map +0 -1
  65. package/dist/names/names.d.ts.map +0 -1
  66. package/dist/names/names.js.map +0 -1
  67. package/dist/ts/ts-scalar-types.d.ts +0 -2
  68. package/dist/ts/ts-scalar-types.d.ts.map +0 -1
  69. package/dist/ts/ts-scalar-types.js +0 -3
  70. package/dist/ts/ts-scalar-types.js.map +0 -1
  71. /package/dist/{names → lib}/names.js +0 -0
package/README.md CHANGED
@@ -10,12 +10,12 @@
10
10
 
11
11
  ## @vnodes/types
12
12
 
13
- Common types and enums
13
+ Shared types
14
14
 
15
15
  ## Installation
16
16
 
17
17
  ```bash
18
- pnpm add @vnodes/types
18
+ pnpm add -D @vnodes/types
19
19
  ```
20
20
 
21
21
  ## 💖 Support My Work
@@ -29,7 +29,7 @@ If you find my open-source contributions or the **@vnodes/types** project helpfu
29
29
  ## 🤝 Connect with Me
30
30
 
31
31
  <p align="left">
32
- <a href="mailto:robert.brightline+vnodes-types@gmail.com">
32
+ <a href="mailto:robert.brightline+vnodes-nestjs@gmail.com">
33
33
  <img src="https://img.shields.io/badge/Email-D14836?style=for-the-badge&logo=gmail&logoColor=white" />
34
34
  </a>
35
35
  </p>
package/dist/index.d.ts CHANGED
@@ -1,14 +1,4 @@
1
- export * from './auth/access-token-payload.js';
2
- export * from './auth/user-credential.js';
3
- export * from './common/any.js';
4
- export * from './common/either.js';
5
- export * from './common/filter-fn.js';
6
- export * from './common/keys.js';
7
- export * from './common/record.js';
8
- export * from './common/some.js';
9
- export * from './common/type.js';
10
- export * from './dev/package-json.js';
11
- export * from './input/error-message.js';
12
- export * from './names/names.js';
13
- export * from './ts/ts-scalar-types.js';
1
+ export * from './lib/common.js';
2
+ export * from './lib/names.js';
3
+ export * from './lib/types.js';
14
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -1,16 +1,6 @@
1
- // @index(['./**/*.ts', '!./**/*.{spec,test}.ts'], f => `export * from '${f.path}.js'`)
2
- export * from './auth/access-token-payload.js';
3
- export * from './auth/user-credential.js';
4
- export * from './common/any.js';
5
- export * from './common/either.js';
6
- export * from './common/filter-fn.js';
7
- export * from './common/keys.js';
8
- export * from './common/record.js';
9
- export * from './common/some.js';
10
- export * from './common/type.js';
11
- export * from './dev/package-json.js';
12
- export * from './input/error-message.js';
13
- export * from './names/names.js';
14
- export * from './ts/ts-scalar-types.js';
1
+ // @index(['./**/*.ts', '!./**/*.spec.ts'], f => `export * from '${f.path}.js'`)
2
+ export * from './lib/common.js';
3
+ export * from './lib/names.js';
4
+ export * from './lib/types.js';
15
5
 
16
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts'], f => `export * from '${f.path}.js'`)\nexport * from './auth/access-token-payload.js';\nexport * from './auth/user-credential.js';\nexport * from './common/any.js';\nexport * from './common/either.js';\nexport * from './common/filter-fn.js';\nexport * from './common/keys.js';\nexport * from './common/record.js';\nexport * from './common/some.js';\nexport * from './common/type.js';\nexport * from './dev/package-json.js';\nexport * from './input/error-message.js';\nexport * from './names/names.js';\nexport * from './ts/ts-scalar-types.js';\n"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,cAAc,iCAAiC;AAC/C,cAAc,4BAA4B;AAC1C,cAAc,kBAAkB;AAChC,cAAc,qBAAqB;AACnC,cAAc,wBAAwB;AACtC,cAAc,mBAAmB;AACjC,cAAc,qBAAqB;AACnC,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,wBAAwB;AACtC,cAAc,2BAA2B;AACzC,cAAc,mBAAmB;AACjC,cAAc,0BAA0B"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.spec.ts'], f => `export * from '${f.path}.js'`)\nexport * from './lib/common.js';\nexport * from './lib/names.js';\nexport * from './lib/types.js';\n"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,cAAc,kBAAkB;AAChC,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB"}
@@ -0,0 +1,24 @@
1
+ export type KeyOf<T> = keyof T;
2
+ /**
3
+ * Array<KeyOf<T>>
4
+ */
5
+ export type Keys<T> = Array<KeyOf<T>>;
6
+ /**
7
+ * Defined or undefined: `T | undefined`
8
+ */
9
+ export type Some<T> = T | undefined;
10
+ /**
11
+ * Defined or null: `T | null;`
12
+ */
13
+ export type Nullable<T> = T | null;
14
+ /**
15
+ * Defined, undefined, or null: `T | undefined | null;`
16
+ */
17
+ export type Optional<T> = T | undefined | null;
18
+ export type Obj = object;
19
+ export type CustomRecord<T extends Obj, V> = Record<KeyOf<T>, V>;
20
+ export type StringRecord<T extends Obj> = CustomRecord<T, string>;
21
+ export type NumberRecord<T extends Obj> = CustomRecord<T, number>;
22
+ export type BooleanRecord<T extends Obj> = CustomRecord<T, boolean>;
23
+ export type Any = any;
24
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/lib/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC;AAE/C,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AAEzB,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEjE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAElE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAElE,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAEpE,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/common.ts"],"sourcesContent":["export type KeyOf<T> = keyof T;\n\n/**\n * Array<KeyOf<T>>\n */\nexport type Keys<T> = Array<KeyOf<T>>;\n\n/**\n * Defined or undefined: `T | undefined`\n */\nexport type Some<T> = T | undefined;\n\n/**\n * Defined or null: `T | null;`\n */\nexport type Nullable<T> = T | null;\n\n/**\n * Defined, undefined, or null: `T | undefined | null;`\n */\nexport type Optional<T> = T | undefined | null;\n\nexport type Obj = object;\n\nexport type CustomRecord<T extends Obj, V> = Record<KeyOf<T>, V>;\n\nexport type StringRecord<T extends Obj> = CustomRecord<T, string>;\n\nexport type NumberRecord<T extends Obj> = CustomRecord<T, number>;\n\nexport type BooleanRecord<T extends Obj> = CustomRecord<T, boolean>;\n\nexport type Any = any;\n"],"names":[],"mappings":"AAgCA,WAAsB"}
@@ -1,11 +1,10 @@
1
1
  export type Names = {
2
- camel: string;
3
2
  pascal: string;
3
+ camel: string;
4
4
  kebab: string;
5
5
  snake: string;
6
6
  constant: string;
7
7
  title: string;
8
8
  sentence: string;
9
- dot: string;
10
9
  };
11
10
  //# sourceMappingURL=names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../src/lib/names.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/names.ts"],"sourcesContent":["export type Names = {\n pascal: string;\n camel: string;\n kebab: string;\n snake: string;\n constant: string;\n title: string;\n sentence: string;\n};\n"],"names":[],"mappings":"AAAA,WAQE"}
@@ -0,0 +1,2 @@
1
+ export declare function types(): string;
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,wBAAgB,KAAK,IAAI,MAAM,CAE9B"}
@@ -0,0 +1,5 @@
1
+ export function types() {
2
+ return 'types';
3
+ }
4
+
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/types.ts"],"sourcesContent":["export function types(): string {\n return 'types';\n}\n"],"names":["types"],"mappings":"AAAA,OAAO,SAASA;IACd,OAAO;AACT"}
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@vnodes/types",
3
+ "version": "0.1.4",
4
+ "type": "module",
5
+ "author": {
6
+ "email": "robert.brightline+vnodes-types@gmail.com",
7
+ "name": "Robert Brightline",
8
+ "url": "https://vnodes.github.io/profile/robert-brightline"
9
+ },
10
+ "keywords": [
11
+ "library",
12
+ "types"
13
+ ],
14
+ "bugs": {
15
+ "email": "robert.brightline+vnodes-types-bug@gmail.com",
16
+ "url": "https://github.com/vnodes/vnodes/issues"
17
+ },
18
+ "homepage": "https://vnodes.github.io/packages/types",
19
+ "publishConfig": {
20
+ "access": "public",
21
+ "tag": "latest"
22
+ },
23
+ "funding": [
24
+ "https://cash.app/$puqlib"
25
+ ],
26
+ "files": [
27
+ "dist",
28
+ "assets"
29
+ ],
30
+ "main": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "module": "./dist/index.js",
33
+ "exports": {
34
+ "./package.json": "./package.json",
35
+ ".": {
36
+ "types": "./dist/index.d.ts",
37
+ "import": "./dist/index.js",
38
+ "default": "./dist/index.js"
39
+ }
40
+ },
41
+ "nx": {
42
+ "sourceRoot": "packages/types/src",
43
+ "tags": [
44
+ "lib:types"
45
+ ],
46
+ "targets": {
47
+ "build": {
48
+ "executor": "@nx/js:swc",
49
+ "outputs": [
50
+ "{options.outputPath}"
51
+ ],
52
+ "options": {
53
+ "outputPath": "packages/types/dist",
54
+ "main": "packages/types/src/index.ts",
55
+ "tsConfig": "packages/types/tsconfig.lib.json",
56
+ "skipTypeCheck": false,
57
+ "stripLeadingPaths": true
58
+ }
59
+ }
60
+ }
61
+ },
62
+ "dependencies": {
63
+ "@swc/helpers": "~0.5.18"
64
+ }
65
+ }
package/package.json CHANGED
@@ -1,58 +1,65 @@
1
1
  {
2
2
  "name": "@vnodes/types",
3
- "version": "0.1.1",
4
- "description": "@vnodes/types",
3
+ "version": "0.1.4",
4
+ "type": "module",
5
+ "author": {
6
+ "email": "robert.brightline+vnodes-types@gmail.com",
7
+ "name": "Robert Brightline",
8
+ "url": "https://vnodes.github.io/profile/robert-brightline"
9
+ },
5
10
  "keywords": [
11
+ "library",
6
12
  "types"
7
13
  ],
8
- "author": {
9
- "name": "Robert Brightline",
10
- "email": "robert.brightline+vnodes-types@gmail.com",
11
- "url": "https://vnodes.github.io/vnodes"
14
+ "bugs": {
15
+ "email": "robert.brightline+vnodes-types-bug@gmail.com",
16
+ "url": "https://github.com/vnodes/vnodes/issues"
17
+ },
18
+ "homepage": "https://vnodes.github.io/packages/types",
19
+ "publishConfig": {
20
+ "access": "public",
21
+ "tag": "latest"
12
22
  },
13
- "homepage": "https://vnodes.github.io/vnodes/libs/types",
14
- "icon": "https://vnodes.github.io/vnodes/libs/types/assets/favicon.png",
15
23
  "funding": [
16
24
  "https://cash.app/$puqlib"
17
25
  ],
18
- "bin": {
19
- "version": "./bin/version.mjs"
20
- },
21
- "type": "module",
26
+ "files": [
27
+ "dist",
28
+ "assets"
29
+ ],
22
30
  "main": "./dist/index.js",
23
- "module": "./dist/index.js",
24
31
  "types": "./dist/index.d.ts",
32
+ "module": "./dist/index.js",
25
33
  "exports": {
26
34
  "./package.json": "./package.json",
27
35
  ".": {
28
- "@vnodes/source": "./src/index.ts",
29
36
  "types": "./dist/index.d.ts",
30
37
  "import": "./dist/index.js",
31
38
  "default": "./dist/index.js"
32
39
  }
33
40
  },
34
- "files": [
35
- "dist",
36
- "bin",
37
- "!**/*.tsbuildinfo",
38
- "assets"
39
- ],
40
41
  "nx": {
41
- "sourceRoot": "libs/types/src",
42
- "targets": {
43
- "build": {},
44
- "doc": {},
45
- "lint": {}
46
- },
42
+ "sourceRoot": "packages/types/src",
47
43
  "tags": [
48
- "lib"
49
- ]
44
+ "lib:types"
45
+ ],
46
+ "targets": {
47
+ "build": {
48
+ "executor": "@nx/js:swc",
49
+ "outputs": [
50
+ "{options.outputPath}"
51
+ ],
52
+ "options": {
53
+ "outputPath": "packages/types/dist",
54
+ "main": "packages/types/src/index.ts",
55
+ "tsConfig": "packages/types/tsconfig.lib.json",
56
+ "skipTypeCheck": false,
57
+ "stripLeadingPaths": true
58
+ }
59
+ }
60
+ }
50
61
  },
51
62
  "dependencies": {
52
63
  "@swc/helpers": "~0.5.18"
53
- },
54
- "publishConfig": {
55
- "access": "public",
56
- "tag": "latest"
57
64
  }
58
65
  }
Binary file
package/bin/version.mjs DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { readFileSync } from 'node:fs';
4
- import { dirname, join } from 'node:path';
5
- import { fileURLToPath } from 'node:url';
6
-
7
- const __filename = fileURLToPath(import.meta.url);
8
- const __dirname = dirname(__filename);
9
- const packageJsonPath = join(__dirname, '..', 'package.json');
10
- const packageJson = readFileSync(packageJsonPath, { encoding: 'utf-8' });
11
- const version = JSON.parse(packageJson).version;
12
- console.log(version);
@@ -1,5 +0,0 @@
1
- export type AccessTokenPayload = {
2
- sub: number;
3
- version: string;
4
- };
5
- //# sourceMappingURL=access-token-payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"access-token-payload.d.ts","sourceRoot":"","sources":["../../src/auth/access-token-payload.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=access-token-payload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/auth/access-token-payload.ts"],"sourcesContent":["export type AccessTokenPayload = {\n sub: number;\n version: string;\n};\n"],"names":[],"mappings":"AAAA,WAGE"}
@@ -1,5 +0,0 @@
1
- export type UserCredential = {
2
- username: string;
3
- password: string;
4
- };
5
- //# sourceMappingURL=user-credential.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-credential.d.ts","sourceRoot":"","sources":["../../src/auth/user-credential.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=user-credential.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/auth/user-credential.ts"],"sourcesContent":["export type UserCredential = {\n username: string;\n password: string;\n};\n"],"names":[],"mappings":"AAAA,WAGE"}
@@ -1,6 +0,0 @@
1
- /** biome-ignore-all lint/suspicious/noExplicitAny: Any */
2
- /**
3
- * Any types
4
- */
5
- export type Any = any;
6
- //# sourceMappingURL=any.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"any.d.ts","sourceRoot":"","sources":["../../src/common/any.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAE1D;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC"}
@@ -1,5 +0,0 @@
1
- /** biome-ignore-all lint/suspicious/noExplicitAny: Any */ /**
2
- * Any types
3
- */ export { };
4
-
5
- //# sourceMappingURL=any.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/any.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noExplicitAny: Any */\n\n/**\n * Any types\n */\nexport type Any = any;\n"],"names":[],"mappings":"AAAA,wDAAwD,GAExD;;CAEC,GACD,WAAsB"}
@@ -1,6 +0,0 @@
1
- export type Either<T> = {
2
- [K in keyof T]: Pick<T, K> & {
3
- [P in Exclude<keyof T, K>]?: never;
4
- };
5
- }[keyof T];
6
- //# sourceMappingURL=either.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"either.d.ts","sourceRoot":"","sources":["../../src/common/either.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;SACxB,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK;KACrC;CACJ,CAAC,MAAM,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=either.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/either.ts"],"sourcesContent":["export type Either<T> = {\n [K in keyof T]: Pick<T, K> & {\n [P in Exclude<keyof T, K>]?: never;\n };\n}[keyof T];\n"],"names":[],"mappings":"AAAA,WAIW"}
@@ -1,2 +0,0 @@
1
- export type FilterFn<T> = (value: T, index?: number, data?: T[]) => boolean;
2
- //# sourceMappingURL=filter-fn.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter-fn.d.ts","sourceRoot":"","sources":["../../src/common/filter-fn.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=filter-fn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/filter-fn.ts"],"sourcesContent":["export type FilterFn<T> = (value: T, index?: number, data?: T[]) => boolean;\n"],"names":[],"mappings":"AAAA,WAA4E"}
@@ -1,2 +0,0 @@
1
- export type Keys<T> = Array<keyof T>;
2
- //# sourceMappingURL=keys.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/common/keys.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=keys.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/keys.ts"],"sourcesContent":["export type Keys<T> = Array<keyof T>;\n"],"names":[],"mappings":"AAAA,WAAqC"}
@@ -1,5 +0,0 @@
1
- export type TypedRecord<T, V> = Record<keyof T, V>;
2
- export type StringRecord<T> = TypedRecord<T, string>;
3
- export type NumberRecord<T> = TypedRecord<T, number>;
4
- export type BooleanRecord<T> = TypedRecord<T, boolean>;
5
- //# sourceMappingURL=record.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/common/record.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;AACnD,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AACrD,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AACrD,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=record.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/record.ts"],"sourcesContent":["export type TypedRecord<T, V> = Record<keyof T, V>;\nexport type StringRecord<T> = TypedRecord<T, string>;\nexport type NumberRecord<T> = TypedRecord<T, number>;\nexport type BooleanRecord<T> = TypedRecord<T, boolean>;\n"],"names":[],"mappings":"AAGA,WAAuD"}
@@ -1,2 +0,0 @@
1
- export type Some<T> = T | undefined | null;
2
- //# sourceMappingURL=some.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"some.d.ts","sourceRoot":"","sources":["../../src/common/some.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=some.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/some.ts"],"sourcesContent":["export type Some<T> = T | undefined | null;\n"],"names":[],"mappings":"AAAA,WAA2C"}
@@ -1,5 +0,0 @@
1
- import type { Any } from './any.js';
2
- export type Type<T> = {
3
- new (...args: Any[]): T;
4
- };
5
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/common/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI;IAClB,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/type.ts"],"sourcesContent":["import type { Any } from './any.js';\n\nexport type Type<T> = {\n new (...args: Any[]): T;\n};\n"],"names":[],"mappings":"AAEA,WAEE"}
@@ -1,45 +0,0 @@
1
- import type { Any } from '../common/any.js';
2
- /**
3
- * A type-safe representation of a standard package.json file.
4
- */
5
- export type PackageJson = {
6
- name: string;
7
- version: string;
8
- description?: string;
9
- main?: string;
10
- module?: string;
11
- types?: string;
12
- typings?: string;
13
- bin?: string | Record<string, string>;
14
- scripts?: Record<string, string>;
15
- dependencies?: Record<string, string>;
16
- devDependencies?: Record<string, string>;
17
- peerDependencies?: Record<string, string>;
18
- optionalDependencies?: Record<string, string>;
19
- funding?: string[];
20
- engines?: {
21
- node?: string;
22
- npm?: string;
23
- [key: string]: string | undefined;
24
- };
25
- repository?: string | {
26
- type: string;
27
- url: string;
28
- directory?: string;
29
- };
30
- keywords?: string[];
31
- author?: string | {
32
- name: string;
33
- email?: string;
34
- url?: string;
35
- };
36
- license?: string;
37
- bugs?: string | {
38
- url?: string;
39
- email?: string;
40
- };
41
- homepage?: string;
42
- icon?: string;
43
- [customTool: string]: Any;
44
- };
45
- //# sourceMappingURL=package-json.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/dev/package-json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KACrC,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAC;CAC7B,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * A type-safe representation of a standard package.json file.
3
- */ export { };
4
-
5
- //# sourceMappingURL=package-json.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/dev/package-json.ts"],"sourcesContent":["import type { Any } from '../common/any.js';\n\n/**\n * A type-safe representation of a standard package.json file.\n */\nexport type PackageJson = {\n name: string;\n version: string;\n description?: string;\n main?: string;\n module?: string;\n types?: string;\n typings?: string;\n bin?: string | Record<string, string>;\n scripts?: Record<string, string>;\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n peerDependencies?: Record<string, string>;\n optionalDependencies?: Record<string, string>;\n funding?: string[];\n engines?: {\n node?: string;\n npm?: string;\n [key: string]: string | undefined;\n };\n repository?: string | { type: string; url: string; directory?: string };\n keywords?: string[];\n author?: string | { name: string; email?: string; url?: string };\n license?: string;\n bugs?: string | { url?: string; email?: string };\n homepage?: string;\n icon?: string;\n [customTool: string]: Any;\n};\n"],"names":[],"mappings":"AAEA;;CAEC,GACD,WA4BE"}
@@ -1,18 +0,0 @@
1
- import type { Any } from '../common/any.js';
2
- export type ConstraintValue = string | number | boolean;
3
- export type Constraints = {
4
- required: boolean;
5
- minlength: number;
6
- maxlength: number;
7
- min: number;
8
- max: number;
9
- positive: boolean;
10
- percent: boolean;
11
- fraction: boolean;
12
- email: boolean;
13
- password: boolean;
14
- uuid: boolean;
15
- ean: boolean;
16
- };
17
- export type ErrorMessageResolver = (value: Any, constraint: string, constraintValues: Constraints) => string;
18
- //# sourceMappingURL=error-message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"error-message.d.ts","sourceRoot":"","sources":["../../src/input/error-message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,KAAK,MAAM,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=error-message.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/input/error-message.ts"],"sourcesContent":["import type { Any } from '../common/any.js';\n\nexport type ConstraintValue = string | number | boolean;\nexport type Constraints = {\n required: boolean;\n minlength: number;\n maxlength: number;\n min: number;\n max: number;\n positive: boolean;\n percent: boolean;\n fraction: boolean;\n email: boolean;\n password: boolean;\n uuid: boolean;\n ean: boolean;\n};\nexport type ErrorMessageResolver = (value: Any, constraint: string, constraintValues: Constraints) => string;\n"],"names":[],"mappings":"AAiBA,WAA6G"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../src/names/names.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/names/names.ts"],"sourcesContent":["export type Names = {\n camel: string;\n pascal: string;\n kebab: string;\n snake: string;\n constant: string;\n title: string;\n sentence: string;\n dot: string;\n};\n"],"names":[],"mappings":"AAAA,WASE"}
@@ -1,2 +0,0 @@
1
- export type TSScalarTypes = 'string' | 'number' | 'boolean' | 'Date' | 'BigInt';
2
- //# sourceMappingURL=ts-scalar-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts-scalar-types.d.ts","sourceRoot":"","sources":["../../src/ts/ts-scalar-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC"}
@@ -1,3 +0,0 @@
1
- export { };
2
-
3
- //# sourceMappingURL=ts-scalar-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ts/ts-scalar-types.ts"],"sourcesContent":["export type TSScalarTypes = 'string' | 'number' | 'boolean' | 'Date' | 'BigInt';\n"],"names":[],"mappings":"AAAA,WAAgF"}
File without changes