@@ -34,7 +34,7 @@ export type TypeId = typeof TypeId
34
34
* @since 2.0.0
35
35
* @category models
36
36
*/
37
- export interface Trie < in out Value > extends Iterable < [ string , Value ] > , Equal , Pipeable , Inspectable {
37
+ export interface Trie < out Value > extends Iterable < [ string , Value ] > , Equal , Pipeable , Inspectable {
38
38
readonly [ TypeId ] : {
39
39
readonly _Value : Covariant < Value >
40
40
}
@@ -122,8 +122,8 @@ export const make: <Entries extends Array<readonly [string, any]>>(
122
122
* @category mutations
123
123
*/
124
124
export const insert : {
125
- < V > ( key : string , value : V ) : ( self : Trie < V > ) => Trie < V >
126
- < V > ( self : Trie < V > , key : string , value : V ) : Trie < V >
125
+ < V1 > ( key : string , value : V1 ) : < V > ( self : Trie < V > ) => Trie < V | V1 >
126
+ < V1 , V > ( self : Trie < V > , key : string , value : V1 ) : Trie < V | V1 >
127
127
} = TR . insert
128
128
129
129
/**
@@ -746,8 +746,8 @@ export const forEach: {
746
746
* @category mutations
747
747
*/
748
748
export const modify : {
749
- < V > ( key : string , f : ( v : V ) => V ) : ( self : Trie < V > ) => Trie < V >
750
- < V > ( self : Trie < V > , key : string , f : ( v : V ) => V ) : Trie < V >
749
+ < V1 , V > ( key : string , f : ( v : V ) => V1 ) : ( self : Trie < V > ) => Trie < V1 | V >
750
+ < V1 , V > ( self : Trie < V > , key : string , f : ( v : V ) => V1 ) : Trie < V | V1 >
751
751
} = TR . modify
752
752
753
753
/**
@@ -807,6 +807,6 @@ export const removeMany: {
807
807
* @category mutations
808
808
*/
809
809
export const insertMany : {
810
- < V > ( iter : Iterable < [ string , V ] > ) : ( self : Trie < V > ) => Trie < V >
811
- < V > ( self : Trie < V > , iter : Iterable < [ string , V ] > ) : Trie < V >
810
+ < V1 > ( iter : Iterable < [ string , V1 ] > ) : < V > ( self : Trie < V > ) => Trie < V | V1 >
811
+ < V1 , V > ( self : Trie < V > , iter : Iterable < [ string , V1 ] > ) : Trie < V | V1 >
812
812
} = TR . insertMany
0 commit comments