inferred-types 0.18.0 → 0.18.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 (40) hide show
  1. package/dist/index.d.ts +41 -35
  2. package/dist/index.js +50 -28
  3. package/dist/index.mjs +37 -16
  4. package/on-hold/Builder/index.ts +15 -21
  5. package/on-hold/types/index.ts +15 -20
  6. package/package.json +17 -21
  7. package/pnpm-lock.yaml +1264 -2929
  8. package/src/Mutation/index.ts +16 -18
  9. package/src/index.ts +15 -19
  10. package/src/shared/index.ts +16 -18
  11. package/src/types/Where.ts +19 -15
  12. package/src/types/alphabetic/index.ts +10 -18
  13. package/src/types/dictionary/index.ts +16 -18
  14. package/src/types/fluent/index.ts +10 -17
  15. package/src/types/index.ts +10 -19
  16. package/src/types/kv/index.ts +16 -18
  17. package/src/types/lists/index.ts +16 -18
  18. package/src/types/string-literals/index.ts +16 -18
  19. package/src/types/tuples/index.ts +16 -18
  20. package/src/types/type-conversion/index.ts +10 -17
  21. package/src/utility/api/index.ts +16 -18
  22. package/src/utility/dictionary/index.ts +16 -21
  23. package/src/utility/dictionary/kv/index.ts +16 -18
  24. package/src/utility/index.ts +16 -20
  25. package/src/utility/lists/index.ts +16 -18
  26. package/src/utility/literals/index.ts +16 -18
  27. package/src/utility/map-reduce/index.ts +16 -18
  28. package/src/utility/modelling/index.ts +16 -18
  29. package/src/utility/runtime/conditions/index.ts +16 -18
  30. package/src/utility/runtime/ifTypeOf.ts +1 -5
  31. package/src/utility/runtime/index.ts +16 -20
  32. package/src/utility/state/Configurator.ts +12 -3
  33. package/src/utility/state/index.ts +16 -18
  34. package/tests/data/index.ts +9 -14
  35. package/tests/kv/dict-to-kv-and-back.spec.ts +24 -18
  36. package/.tsbuildinfo +0 -1
  37. package/src/errors/InferenceError.ts +0 -3
  38. package/src/errors/index.ts +0 -37
  39. package/src/utility/dictionary/dictFilter.ts +0 -19
  40. package/tests/kv/dictFilter.ts +0 -8
@@ -1,39 +1,37 @@
1
1
  // #autoindex
2
2
 
3
3
  // #region autoindexed files
4
+ // index last changed at: 1st Jan, 2022, 03:27 PM ( GMT-8 )
5
+ // hash-code: f6badae2
4
6
 
5
- // index last changed at: 5th May, 2021, 05:45 PM ( GMT-7 )
6
- // export: named; exclusions: index, private.
7
- // files: MutationFunction, MutationIdentity.
8
-
9
- // local file exports
7
+ // file exports
10
8
  export * from "./MutationFunction";
11
9
  export * from "./MutationIdentity";
12
10
 
13
- // Note:
14
- // -----
15
- // This file was created by running: "dd devops autoindex"; it assumes you have
16
- // the 'do-devops' pkg installed as a dev dep.
11
+ // #endregion
12
+
13
+ // This file was created by running: "dd autoindex"; it assumes you have
14
+ // the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
17
15
  //
18
16
  // By default it assumes that exports are named exports but this can be changed by
19
17
  // adding a modifier to the '// #autoindex' syntax:
20
18
  //
21
19
  // - autoindex:named same as default, exports "named symbols"
22
- // - autoindex:default assumes each file is exporting a default export
23
- // and converts the default export to the name of the
24
- // file
20
+ // - autoindex:default assumes each file is exporting a default export and
21
+ // converts the default export to the name of the file
25
22
  // - autoindex:offset assumes files export "named symbols" but that each
26
23
  // file's symbols should be offset by the file's name
27
- // (useful for files which might symbols which collide
28
- // or where the namespacing helps consumers)
29
24
  //
30
25
  // You may also exclude certain files or directories by adding it to the
31
26
  // autoindex command. As an example:
32
27
  //
33
28
  // - autoindex:named, exclude: foo,bar,baz
34
29
  //
35
- // Also be aware that all of your content outside the defined region in this file
36
- // will be preserved in situations where you need to do something paricularly awesome.
30
+ // Inversely, if you state a file to be an "orphan" then autoindex files
31
+ // below this file will not reference this autoindex file:
32
+ //
33
+ // - autoindex:named, orphan
34
+ //
35
+ // All content outside the "// #region" section in this file will be
36
+ // preserved in situations where you need to do something paricularly awesome.
37
37
  // Keep on being awesome.
38
-
39
- // #endregion
package/src/index.ts CHANGED
@@ -1,43 +1,39 @@
1
1
  // #autoindex
2
2
 
3
3
  // #region autoindexed files
4
-
5
- // index last changed at: 6th Jun, 2021, 01:46 PM ( GMT-7 )
6
- // export: named; exclusions: index, private.
7
- // directories: Mutation, errors, types, utility.
4
+ // index last changed at: 1st Jan, 2022, 03:27 PM ( GMT-8 )
5
+ // hash-code: 3f75741a
8
6
 
9
7
  // directory exports
10
8
  export * from "./Mutation/index";
11
- export * from "./errors/index";
9
+ export * from "./shared/index";
12
10
  export * from "./types/index";
13
11
  export * from "./utility/index";
14
12
 
15
- // there were directories orphaned: shared
13
+ // #endregion
16
14
 
17
- // Note:
18
- // -----
19
- // This file was created by running: "dd devops autoindex"; it assumes you have
20
- // the 'do-devops' pkg installed as a dev dep.
15
+ // This file was created by running: "dd autoindex"; it assumes you have
16
+ // the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
21
17
  //
22
18
  // By default it assumes that exports are named exports but this can be changed by
23
19
  // adding a modifier to the '// #autoindex' syntax:
24
20
  //
25
21
  // - autoindex:named same as default, exports "named symbols"
26
- // - autoindex:default assumes each file is exporting a default export
27
- // and converts the default export to the name of the
28
- // file
22
+ // - autoindex:default assumes each file is exporting a default export and
23
+ // converts the default export to the name of the file
29
24
  // - autoindex:offset assumes files export "named symbols" but that each
30
25
  // file's symbols should be offset by the file's name
31
- // (useful for files which might symbols which collide
32
- // or where the namespacing helps consumers)
33
26
  //
34
27
  // You may also exclude certain files or directories by adding it to the
35
28
  // autoindex command. As an example:
36
29
  //
37
30
  // - autoindex:named, exclude: foo,bar,baz
38
31
  //
39
- // Also be aware that all of your content outside the defined region in this file
40
- // will be preserved in situations where you need to do something paricularly awesome.
32
+ // Inversely, if you state a file to be an "orphan" then autoindex files
33
+ // below this file will not reference this autoindex file:
34
+ //
35
+ // - autoindex:named, orphan
36
+ //
37
+ // All content outside the "// #region" section in this file will be
38
+ // preserved in situations where you need to do something paricularly awesome.
41
39
  // Keep on being awesome.
42
-
43
- // #endregion
@@ -1,40 +1,38 @@
1
1
  // #autoindex: orphan
2
2
 
3
3
  // #region autoindexed files
4
+ // index last changed at: 1st Jan, 2022, 03:27 PM ( GMT-8 )
5
+ // hash-code: 58ead14b
4
6
 
5
- // index last changed at: 6th Jun, 2021, 06:35 PM ( GMT-7 )
6
- // export: named; exclusions: index, private.
7
- // files: randomString, uuid, valueTypes.
8
-
9
- // local file exports
7
+ // file exports
10
8
  export * from "./randomString";
11
9
  export * from "./uuid";
12
10
  export * from "./valueTypes";
13
11
 
14
- // Note:
15
- // -----
16
- // This file was created by running: "dd devops autoindex"; it assumes you have
17
- // the 'do-devops' pkg installed as a dev dep.
12
+ // #endregion
13
+
14
+ // This file was created by running: "dd autoindex"; it assumes you have
15
+ // the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
18
16
  //
19
17
  // By default it assumes that exports are named exports but this can be changed by
20
18
  // adding a modifier to the '// #autoindex' syntax:
21
19
  //
22
20
  // - autoindex:named same as default, exports "named symbols"
23
- // - autoindex:default assumes each file is exporting a default export
24
- // and converts the default export to the name of the
25
- // file
21
+ // - autoindex:default assumes each file is exporting a default export and
22
+ // converts the default export to the name of the file
26
23
  // - autoindex:offset assumes files export "named symbols" but that each
27
24
  // file's symbols should be offset by the file's name
28
- // (useful for files which might symbols which collide
29
- // or where the namespacing helps consumers)
30
25
  //
31
26
  // You may also exclude certain files or directories by adding it to the
32
27
  // autoindex command. As an example:
33
28
  //
34
29
  // - autoindex:named, exclude: foo,bar,baz
35
30
  //
36
- // Also be aware that all of your content outside the defined region in this file
37
- // will be preserved in situations where you need to do something paricularly awesome.
31
+ // Inversely, if you state a file to be an "orphan" then autoindex files
32
+ // below this file will not reference this autoindex file:
33
+ //
34
+ // - autoindex:named, orphan
35
+ //
36
+ // All content outside the "// #region" section in this file will be
37
+ // preserved in situations where you need to do something paricularly awesome.
38
38
  // Keep on being awesome.
39
-
40
- // #endregion
@@ -1,8 +1,7 @@
1
- import { Include } from "native-dash";
2
-
1
+ import { Include } from "./Include";
3
2
  /**
4
3
  * Allows filtering down `T` to those which extend a given type `U`.
5
- *
4
+ *
6
5
  * - `T` is either a dictionary (where keys will be used to compare) or
7
6
  * a readonly sting array.
8
7
  * ```ts
@@ -11,16 +10,18 @@ import { Include } from "native-dash";
11
10
  * type BA = Where<typeof arr, `ba${string}`>;
12
11
  * ```
13
12
  */
14
- export type Where<T extends Record<string, any> | readonly string[], U> = T extends readonly string[]
15
- ? Include<T[number], U>
16
- : {
17
- [K in keyof T]: K extends U ? K : never;
18
- }[keyof T];
19
-
13
+ export type Where<
14
+ T extends Record<string, any> | readonly string[],
15
+ U
16
+ > = T extends readonly string[]
17
+ ? Include<T[number], U>
18
+ : {
19
+ [K in keyof T]: K extends U ? K : never;
20
+ }[keyof T];
20
21
 
21
22
  /**
22
23
  * Allows filtering down `T` to those which extend a given type `U`.
23
- *
24
+ *
24
25
  * - `T` is either a dictionary (where keys will be used to compare) or
25
26
  * a readonly sting array.
26
27
  * ```ts
@@ -29,8 +30,11 @@ import { Include } from "native-dash";
29
30
  * type F = WhereNot<typeof arr, `ba${string}`>;
30
31
  * ```
31
32
  */
32
- export type WhereNot<T extends Record<string, any> | readonly string[], U> = T extends readonly string[]
33
- ? Exclude<T[number], U>
34
- : {
35
- [K in keyof T]: K extends U ? never : K;
36
- }[keyof T];
33
+ export type WhereNot<
34
+ T extends Record<string, any> | readonly string[],
35
+ U
36
+ > = T extends readonly string[]
37
+ ? Exclude<T[number], U>
38
+ : {
39
+ [K in keyof T]: K extends U ? never : K;
40
+ }[keyof T];
@@ -1,14 +1,11 @@
1
1
  // #autoindex, exclude: Alpha
2
2
  // #region autoindexed files
3
+ // index last changed at: 1st Jan, 2022, 03:27 PM ( GMT-8 )
4
+ // hash-code: fcf9c4b
3
5
 
4
- // index last changed at: 12th Dec, 2021, 12:24 PM ( GMT-8 )
5
- // export: named; exclusions: Alpha, index, private.
6
- // files: AllCaps, CamelCase, CapFirstAlpha, CapitalizeWords, DashToSnake, DashUppercase, Dasherize, HasUppercase, IsCapitalized, KebabCase, LowerAllCaps, PascalCase, Pluralize, SnakeCase, alpha-characters.
7
-
8
- // local file exports
6
+ // file exports
9
7
  export * from "./AllCaps";
10
8
  export * from "./CamelCase";
11
- export * from "./CapFirstAlpha";
12
9
  export * from "./CapitalizeWords";
13
10
  export * from "./DashToSnake";
14
11
  export * from "./DashUppercase";
@@ -22,22 +19,19 @@ export * from "./Pluralize";
22
19
  export * from "./SnakeCase";
23
20
  export * from "./alpha-characters";
24
21
 
25
- // Note:
26
- // -----
27
- // This file was created by running: "dd devops autoindex"; it assumes you have
22
+ // #endregion
23
+
24
+ // This file was created by running: "dd autoindex"; it assumes you have
28
25
  // the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
29
26
  //
30
27
  // By default it assumes that exports are named exports but this can be changed by
31
28
  // adding a modifier to the '// #autoindex' syntax:
32
29
  //
33
30
  // - autoindex:named same as default, exports "named symbols"
34
- // - autoindex:default assumes each file is exporting a default export
35
- // and converts the default export to the name of the
36
- // file
31
+ // - autoindex:default assumes each file is exporting a default export and
32
+ // converts the default export to the name of the file
37
33
  // - autoindex:offset assumes files export "named symbols" but that each
38
34
  // file's symbols should be offset by the file's name
39
- // (useful for files which might symbols which collide
40
- // or where the namespacing helps consumers)
41
35
  //
42
36
  // You may also exclude certain files or directories by adding it to the
43
37
  // autoindex command. As an example:
@@ -49,8 +43,6 @@ export * from "./alpha-characters";
49
43
  //
50
44
  // - autoindex:named, orphan
51
45
  //
52
- // Also be aware that all of your content outside the "// #region" section in this file
53
- // will be preserved in situations where you need to do something paricularly awesome.
46
+ // All content outside the "// #region" section in this file will be
47
+ // preserved in situations where you need to do something paricularly awesome.
54
48
  // Keep on being awesome.
55
-
56
- // #endregion
@@ -1,37 +1,35 @@
1
1
  // #autoindex
2
2
  // #region autoindexed files
3
+ // index last changed at: 1st Jan, 2022, 03:27 PM ( GMT-8 )
4
+ // hash-code: 47804a72
3
5
 
4
- // index last changed at: 7th Jul, 2021, 10:23 PM ( GMT-7 )
5
- // export: named; exclusions: index, private.
6
- // files: Get.
7
-
8
- // local file exports
6
+ // file exports
9
7
  export * from "./Get";
10
8
 
11
- // Note:
12
- // -----
13
- // This file was created by running: "dd devops autoindex"; it assumes you have
14
- // the 'do-devops' pkg installed as a dev dep.
9
+ // #endregion
10
+
11
+ // This file was created by running: "dd autoindex"; it assumes you have
12
+ // the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
15
13
  //
16
14
  // By default it assumes that exports are named exports but this can be changed by
17
15
  // adding a modifier to the '// #autoindex' syntax:
18
16
  //
19
17
  // - autoindex:named same as default, exports "named symbols"
20
- // - autoindex:default assumes each file is exporting a default export
21
- // and converts the default export to the name of the
22
- // file
18
+ // - autoindex:default assumes each file is exporting a default export and
19
+ // converts the default export to the name of the file
23
20
  // - autoindex:offset assumes files export "named symbols" but that each
24
21
  // file's symbols should be offset by the file's name
25
- // (useful for files which might symbols which collide
26
- // or where the namespacing helps consumers)
27
22
  //
28
23
  // You may also exclude certain files or directories by adding it to the
29
24
  // autoindex command. As an example:
30
25
  //
31
26
  // - autoindex:named, exclude: foo,bar,baz
32
27
  //
33
- // Also be aware that all of your content outside the defined region in this file
34
- // will be preserved in situations where you need to do something paricularly awesome.
28
+ // Inversely, if you state a file to be an "orphan" then autoindex files
29
+ // below this file will not reference this autoindex file:
30
+ //
31
+ // - autoindex:named, orphan
32
+ //
33
+ // All content outside the "// #region" section in this file will be
34
+ // preserved in situations where you need to do something paricularly awesome.
35
35
  // Keep on being awesome.
36
-
37
- // #endregion
@@ -1,29 +1,24 @@
1
1
  // #autoindex
2
2
  // #region autoindexed files
3
+ // index last changed at: 1st Jan, 2022, 03:27 PM ( GMT-8 )
4
+ // hash-code: c5fbce38
3
5
 
4
- // index last changed at: 12th Dec, 2021, 12:28 PM ( GMT-8 )
5
- // export: named; exclusions: index, private.
6
- // files: fluent.
7
-
8
- // local file exports
6
+ // file exports
9
7
  export * from "./fluent";
10
8
 
11
- // Note:
12
- // -----
13
- // This file was created by running: "dd devops autoindex"; it assumes you have
9
+ // #endregion
10
+
11
+ // This file was created by running: "dd autoindex"; it assumes you have
14
12
  // the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
15
13
  //
16
14
  // By default it assumes that exports are named exports but this can be changed by
17
15
  // adding a modifier to the '// #autoindex' syntax:
18
16
  //
19
17
  // - autoindex:named same as default, exports "named symbols"
20
- // - autoindex:default assumes each file is exporting a default export
21
- // and converts the default export to the name of the
22
- // file
18
+ // - autoindex:default assumes each file is exporting a default export and
19
+ // converts the default export to the name of the file
23
20
  // - autoindex:offset assumes files export "named symbols" but that each
24
21
  // file's symbols should be offset by the file's name
25
- // (useful for files which might symbols which collide
26
- // or where the namespacing helps consumers)
27
22
  //
28
23
  // You may also exclude certain files or directories by adding it to the
29
24
  // autoindex command. As an example:
@@ -35,8 +30,6 @@ export * from "./fluent";
35
30
  //
36
31
  // - autoindex:named, orphan
37
32
  //
38
- // Also be aware that all of your content outside the "// #region" section in this file
39
- // will be preserved in situations where you need to do something paricularly awesome.
33
+ // All content outside the "// #region" section in this file will be
34
+ // preserved in situations where you need to do something paricularly awesome.
40
35
  // Keep on being awesome.
41
-
42
- // #endregion
@@ -1,12 +1,9 @@
1
1
  // #autoindex
2
2
  // #region autoindexed files
3
+ // index last changed at: 1st Jan, 2022, 03:27 PM ( GMT-8 )
4
+ // hash-code: 7e6e29a0
3
5
 
4
- // index last changed at: 10th Oct, 2021, 08:32 PM ( GMT-7 )
5
- // export: named; exclusions: index, private.
6
- // files: Api, Constructor, EnumValues, ExpandRecursively, First, FunctionType, If, Include, Includes, KeyedRecord, Keys, Length, Mutable, Narrowable, Not, Numeric, Opaque, Retain, Transformer, TypeGuard, Where, append-types, maybe, props, ruleset-types, runtime, type-testing.
7
- // directories: alphabetic, dictionary, fluent, kv, lists, string-literals, tuples, type-conversion.
8
-
9
- // local file exports
6
+ // file exports
10
7
  export * from "./Api";
11
8
  export * from "./Constructor";
12
9
  export * from "./EnumValues";
@@ -34,7 +31,6 @@ export * from "./props";
34
31
  export * from "./ruleset-types";
35
32
  export * from "./runtime";
36
33
  export * from "./type-testing";
37
-
38
34
  // directory exports
39
35
  export * from "./alphabetic/index";
40
36
  export * from "./dictionary/index";
@@ -45,22 +41,19 @@ export * from "./string-literals/index";
45
41
  export * from "./tuples/index";
46
42
  export * from "./type-conversion/index";
47
43
 
48
- // Note:
49
- // -----
50
- // This file was created by running: "dd devops autoindex"; it assumes you have
44
+ // #endregion
45
+
46
+ // This file was created by running: "dd autoindex"; it assumes you have
51
47
  // the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
52
48
  //
53
49
  // By default it assumes that exports are named exports but this can be changed by
54
50
  // adding a modifier to the '// #autoindex' syntax:
55
51
  //
56
52
  // - autoindex:named same as default, exports "named symbols"
57
- // - autoindex:default assumes each file is exporting a default export
58
- // and converts the default export to the name of the
59
- // file
53
+ // - autoindex:default assumes each file is exporting a default export and
54
+ // converts the default export to the name of the file
60
55
  // - autoindex:offset assumes files export "named symbols" but that each
61
56
  // file's symbols should be offset by the file's name
62
- // (useful for files which might symbols which collide
63
- // or where the namespacing helps consumers)
64
57
  //
65
58
  // You may also exclude certain files or directories by adding it to the
66
59
  // autoindex command. As an example:
@@ -72,8 +65,6 @@ export * from "./type-conversion/index";
72
65
  //
73
66
  // - autoindex:named, orphan
74
67
  //
75
- // Also be aware that all of your content outside the "// #region" section in this file
76
- // will be preserved in situations where you need to do something paricularly awesome.
68
+ // All content outside the "// #region" section in this file will be
69
+ // preserved in situations where you need to do something paricularly awesome.
77
70
  // Keep on being awesome.
78
-
79
- // #endregion
@@ -1,40 +1,38 @@
1
1
  // #autoindex
2
2
  // #region autoindexed files
3
+ // index last changed at: 1st Jan, 2022, 03:27 PM ( GMT-8 )
4
+ // hash-code: abd196de
3
5
 
4
- // index last changed at: 7th Jul, 2021, 01:41 PM ( GMT-7 )
5
- // export: named; exclusions: index, private.
6
- // files: DictFromKv, KeyValue, KvFrom, KvTuple.
7
-
8
- // local file exports
6
+ // file exports
9
7
  export * from "./DictFromKv";
10
8
  export * from "./KeyValue";
11
9
  export * from "./KvFrom";
12
10
  export * from "./KvTuple";
13
11
 
14
- // Note:
15
- // -----
16
- // This file was created by running: "dd devops autoindex"; it assumes you have
17
- // the 'do-devops' pkg installed as a dev dep.
12
+ // #endregion
13
+
14
+ // This file was created by running: "dd autoindex"; it assumes you have
15
+ // the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
18
16
  //
19
17
  // By default it assumes that exports are named exports but this can be changed by
20
18
  // adding a modifier to the '// #autoindex' syntax:
21
19
  //
22
20
  // - autoindex:named same as default, exports "named symbols"
23
- // - autoindex:default assumes each file is exporting a default export
24
- // and converts the default export to the name of the
25
- // file
21
+ // - autoindex:default assumes each file is exporting a default export and
22
+ // converts the default export to the name of the file
26
23
  // - autoindex:offset assumes files export "named symbols" but that each
27
24
  // file's symbols should be offset by the file's name
28
- // (useful for files which might symbols which collide
29
- // or where the namespacing helps consumers)
30
25
  //
31
26
  // You may also exclude certain files or directories by adding it to the
32
27
  // autoindex command. As an example:
33
28
  //
34
29
  // - autoindex:named, exclude: foo,bar,baz
35
30
  //
36
- // Also be aware that all of your content outside the defined region in this file
37
- // will be preserved in situations where you need to do something paricularly awesome.
31
+ // Inversely, if you state a file to be an "orphan" then autoindex files
32
+ // below this file will not reference this autoindex file:
33
+ //
34
+ // - autoindex:named, orphan
35
+ //
36
+ // All content outside the "// #region" section in this file will be
37
+ // preserved in situations where you need to do something paricularly awesome.
38
38
  // Keep on being awesome.
39
-
40
- // #endregion
@@ -1,38 +1,36 @@
1
1
  // #autoindex
2
2
 
3
3
  // #region autoindexed files
4
+ // index last changed at: 1st Jan, 2022, 03:27 PM ( GMT-8 )
5
+ // hash-code: 61af00e2
4
6
 
5
- // index last changed at: 8th Aug, 2021, 05:44 PM ( GMT-7 )
6
- // export: named; exclusions: index, private.
7
- // files: UniqueForProp.
8
-
9
- // local file exports
7
+ // file exports
10
8
  export * from "./UniqueForProp";
11
9
 
12
- // Note:
13
- // -----
14
- // This file was created by running: "dd devops autoindex"; it assumes you have
15
- // the 'do-devops' pkg installed as a dev dep.
10
+ // #endregion
11
+
12
+ // This file was created by running: "dd autoindex"; it assumes you have
13
+ // the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
16
14
  //
17
15
  // By default it assumes that exports are named exports but this can be changed by
18
16
  // adding a modifier to the '// #autoindex' syntax:
19
17
  //
20
18
  // - autoindex:named same as default, exports "named symbols"
21
- // - autoindex:default assumes each file is exporting a default export
22
- // and converts the default export to the name of the
23
- // file
19
+ // - autoindex:default assumes each file is exporting a default export and
20
+ // converts the default export to the name of the file
24
21
  // - autoindex:offset assumes files export "named symbols" but that each
25
22
  // file's symbols should be offset by the file's name
26
- // (useful for files which might symbols which collide
27
- // or where the namespacing helps consumers)
28
23
  //
29
24
  // You may also exclude certain files or directories by adding it to the
30
25
  // autoindex command. As an example:
31
26
  //
32
27
  // - autoindex:named, exclude: foo,bar,baz
33
28
  //
34
- // Also be aware that all of your content outside the defined region in this file
35
- // will be preserved in situations where you need to do something paricularly awesome.
29
+ // Inversely, if you state a file to be an "orphan" then autoindex files
30
+ // below this file will not reference this autoindex file:
31
+ //
32
+ // - autoindex:named, orphan
33
+ //
34
+ // All content outside the "// #region" section in this file will be
35
+ // preserved in situations where you need to do something paricularly awesome.
36
36
  // Keep on being awesome.
37
-
38
- // #endregion
@@ -1,11 +1,9 @@
1
1
  // #autoindex
2
2
  // #region autoindexed files
3
+ // index last changed at: 1st Jan, 2022, 03:27 PM ( GMT-8 )
4
+ // hash-code: a80cfdd7
3
5
 
4
- // index last changed at: 7th Jul, 2021, 02:55 PM ( GMT-7 )
5
- // export: named; exclusions: index, private.
6
- // files: Break, Concat, LeftWhitespace, Replace, RightWhitespace, StringLength, Trim, TrimLeft, TrimRight, form-fields.
7
-
8
- // local file exports
6
+ // file exports
9
7
  export * from "./Break";
10
8
  export * from "./Concat";
11
9
  export * from "./LeftWhitespace";
@@ -17,30 +15,30 @@ export * from "./TrimLeft";
17
15
  export * from "./TrimRight";
18
16
  export * from "./form-fields";
19
17
 
20
- // Note:
21
- // -----
22
- // This file was created by running: "dd devops autoindex"; it assumes you have
23
- // the 'do-devops' pkg installed as a dev dep.
18
+ // #endregion
19
+
20
+ // This file was created by running: "dd autoindex"; it assumes you have
21
+ // the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
24
22
  //
25
23
  // By default it assumes that exports are named exports but this can be changed by
26
24
  // adding a modifier to the '// #autoindex' syntax:
27
25
  //
28
26
  // - autoindex:named same as default, exports "named symbols"
29
- // - autoindex:default assumes each file is exporting a default export
30
- // and converts the default export to the name of the
31
- // file
27
+ // - autoindex:default assumes each file is exporting a default export and
28
+ // converts the default export to the name of the file
32
29
  // - autoindex:offset assumes files export "named symbols" but that each
33
30
  // file's symbols should be offset by the file's name
34
- // (useful for files which might symbols which collide
35
- // or where the namespacing helps consumers)
36
31
  //
37
32
  // You may also exclude certain files or directories by adding it to the
38
33
  // autoindex command. As an example:
39
34
  //
40
35
  // - autoindex:named, exclude: foo,bar,baz
41
36
  //
42
- // Also be aware that all of your content outside the defined region in this file
43
- // will be preserved in situations where you need to do something paricularly awesome.
37
+ // Inversely, if you state a file to be an "orphan" then autoindex files
38
+ // below this file will not reference this autoindex file:
39
+ //
40
+ // - autoindex:named, orphan
41
+ //
42
+ // All content outside the "// #region" section in this file will be
43
+ // preserved in situations where you need to do something paricularly awesome.
44
44
  // Keep on being awesome.
45
-
46
- // #endregion