res-pareto-build 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
|
|
1
|
-
import * as
|
2
|
-
export type CbuildArray =
|
3
|
-
export type CbuildDictionary =
|
4
|
-
export type CunsafeBuildDictionary =
|
1
|
+
import * as gglo from "./glossary";
|
2
|
+
export type CbuildArray = gglo.FBuildArray;
|
3
|
+
export type CbuildDictionary = gglo.FBuildDictionary;
|
4
|
+
export type CunsafeBuildDictionary = gglo.FUnsafeBuildDictionary;
|
5
5
|
export type API = {
|
6
6
|
buildArray: CbuildArray;
|
7
7
|
buildDictionary: CbuildDictionary;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { T } from './types.generated';
|
2
|
-
import * as
|
2
|
+
import * as gcommon from "glo-pareto-common";
|
3
3
|
export type IAdd<GPType> = ($: T.KeyValuePair<GPType>) => void;
|
4
|
-
export type IOnDuplicate<GPType> = ($:
|
4
|
+
export type IOnDuplicate<GPType> = ($: gcommon.T.String) => void;
|
5
5
|
export type IPush<GPType> = ($: T.Type<GPType>) => void;
|
6
|
-
export type FBuildArray = <GPType>($:
|
6
|
+
export type FBuildArray = <GPType>($: gcommon.T.Null, $c: ($i: IPush<GPType>) => void) => T.Array<GPType>;
|
7
7
|
export type FBuildDictionary = <GPType>($: T.DictionaryBuildStrategy<GPType>, $c: ($i: IAdd<GPType>) => void, $i: IOnDuplicate<GPType>) => T.Dictionary<GPType>;
|
8
|
-
export type FUnsafeBuildDictionary = <GPType>($:
|
8
|
+
export type FUnsafeBuildDictionary = <GPType>($: gcommon.T.Null, $c: ($i: IAdd<GPType>) => void) => T.Dictionary<GPType>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"author": "Corno",
|
3
|
-
"license": "
|
3
|
+
"license": "TBD",
|
4
4
|
"description": "this library provides functions to build arrays and dictionaries by adding entries/elements one by one",
|
5
5
|
"dependencies": {
|
6
6
|
"glo-pareto-common": "^0.15.0",
|
@@ -16,6 +16,6 @@
|
|
16
16
|
"main": "dist/index.js",
|
17
17
|
"types": "dist/index.d.ts",
|
18
18
|
"name": "res-pareto-build",
|
19
|
-
"version": "0.
|
20
|
-
"content-fingerprint": "
|
19
|
+
"version": "0.4.0",
|
20
|
+
"content-fingerprint": "81d81ba477e59f56ff2bfe4a5304d64592ec6dc0"
|
21
21
|
}
|