inferred-types 0.18.1 → 0.18.2
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/.tsbuildinfo +1 -1
- package/dist/index.d.ts +37 -24
- package/dist/index.js +47 -19
- package/dist/index.mjs +32 -6
- package/on-hold/Builder/index.ts +15 -21
- package/on-hold/types/index.ts +15 -20
- package/package.json +5 -5
- package/pnpm-lock.yaml +61 -276
- package/src/Mutation/index.ts +16 -18
- package/src/index.ts +15 -19
- package/src/shared/index.ts +16 -18
- package/src/types/alphabetic/index.ts +10 -18
- package/src/types/dictionary/index.ts +16 -18
- package/src/types/fluent/index.ts +10 -17
- package/src/types/index.ts +10 -19
- package/src/types/kv/index.ts +16 -18
- package/src/types/lists/index.ts +16 -18
- package/src/types/string-literals/index.ts +16 -18
- package/src/types/tuples/index.ts +16 -18
- package/src/types/type-conversion/index.ts +10 -17
- package/src/utility/api/index.ts +16 -18
- package/src/utility/dictionary/index.ts +16 -20
- package/src/utility/dictionary/kv/index.ts +16 -18
- package/src/utility/index.ts +16 -20
- package/src/utility/lists/index.ts +16 -18
- package/src/utility/literals/index.ts +16 -18
- package/src/utility/map-reduce/index.ts +16 -18
- package/src/utility/modelling/index.ts +16 -18
- package/src/utility/runtime/conditions/index.ts +16 -18
- package/src/utility/runtime/ifTypeOf.ts +1 -5
- package/src/utility/runtime/index.ts +16 -20
- package/src/utility/state/index.ts +16 -18
- package/tests/data/index.ts +9 -14
- package/tests/kv/dict-to-kv-and-back.spec.ts +6 -2
- package/src/errors/InferenceError.ts +0 -3
- package/src/errors/index.ts +0 -37
package/tests/data/index.ts
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
// #autoindex
|
|
2
2
|
|
|
3
3
|
// #region autoindexed files
|
|
4
|
+
// index last changed at: 12th Dec, 2021, 09:28 AM ( GMT-8 )
|
|
5
|
+
// hash-code: 3659802676
|
|
4
6
|
|
|
5
|
-
// index last changed at: 12th Dec, 2021, 12:35 PM ( GMT-8 )
|
|
6
|
-
// export: named; exclusions: index, private.
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
// This file was created by running: "dd
|
|
9
|
+
// #endregion
|
|
10
|
+
|
|
11
|
+
// This file was created by running: "dd autoindex"; it assumes you have
|
|
12
12
|
// the 'do-devops' pkg (that's "dd" on npm) installed as a dev dep.
|
|
13
13
|
//
|
|
14
14
|
// By default it assumes that exports are named exports but this can be changed by
|
|
15
15
|
// adding a modifier to the '// #autoindex' syntax:
|
|
16
16
|
//
|
|
17
17
|
// - autoindex:named same as default, exports "named symbols"
|
|
18
|
-
// - autoindex:default assumes each file is exporting a default export
|
|
19
|
-
//
|
|
20
|
-
// file
|
|
18
|
+
// - autoindex:default assumes each file is exporting a default export and
|
|
19
|
+
// converts the default export to the name of the file
|
|
21
20
|
// - autoindex:offset assumes files export "named symbols" but that each
|
|
22
21
|
// file's symbols should be offset by the file's name
|
|
23
|
-
// (useful for files which might symbols which collide
|
|
24
|
-
// or where the namespacing helps consumers)
|
|
25
22
|
//
|
|
26
23
|
// You may also exclude certain files or directories by adding it to the
|
|
27
24
|
// autoindex command. As an example:
|
|
@@ -33,8 +30,6 @@
|
|
|
33
30
|
//
|
|
34
31
|
// - autoindex:named, orphan
|
|
35
32
|
//
|
|
36
|
-
//
|
|
37
|
-
//
|
|
33
|
+
// All content outside the "// #region" section in this file will be
|
|
34
|
+
// preserved in situations where you need to do something paricularly awesome.
|
|
38
35
|
// Keep on being awesome.
|
|
39
|
-
|
|
40
|
-
// #endregion
|
|
@@ -23,7 +23,10 @@ describe("dictToKv()", () => {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
type cases = [
|
|
26
|
-
Expect<
|
|
26
|
+
Expect<
|
|
27
|
+
Equal<
|
|
28
|
+
Val,
|
|
29
|
+
[
|
|
27
30
|
{
|
|
28
31
|
key: "id";
|
|
29
32
|
value: 123;
|
|
@@ -32,7 +35,8 @@ describe("dictToKv()", () => {
|
|
|
32
35
|
key: "foo";
|
|
33
36
|
value: "bar";
|
|
34
37
|
}
|
|
35
|
-
]
|
|
38
|
+
]
|
|
39
|
+
>
|
|
36
40
|
>
|
|
37
41
|
];
|
|
38
42
|
|
package/src/errors/index.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// #autoindex
|
|
2
|
-
// #region autoindexed files
|
|
3
|
-
|
|
4
|
-
// index last changed at: 6th Jun, 2021, 07:11 PM ( GMT-7 )
|
|
5
|
-
// export: named; exclusions: index, private.
|
|
6
|
-
// files: InferenceError.
|
|
7
|
-
|
|
8
|
-
// local file exports
|
|
9
|
-
export * from "./InferenceError";
|
|
10
|
-
|
|
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.
|
|
15
|
-
//
|
|
16
|
-
// By default it assumes that exports are named exports but this can be changed by
|
|
17
|
-
// adding a modifier to the '// #autoindex' syntax:
|
|
18
|
-
//
|
|
19
|
-
// - 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
|
|
23
|
-
// - autoindex:offset assumes files export "named symbols" but that each
|
|
24
|
-
// 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
|
-
//
|
|
28
|
-
// You may also exclude certain files or directories by adding it to the
|
|
29
|
-
// autoindex command. As an example:
|
|
30
|
-
//
|
|
31
|
-
// - autoindex:named, exclude: foo,bar,baz
|
|
32
|
-
//
|
|
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.
|
|
35
|
-
// Keep on being awesome.
|
|
36
|
-
|
|
37
|
-
// #endregion
|