Skip to content

Commit b3a5ec3

Browse files
committed
Remove HydrationState generics.
We can re-add it if we actually need it later.
1 parent d130411 commit b3a5ec3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/sync-rules/src/HydrationState.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,16 @@ export interface ParameterLookupScope {
1717
* This is what keeps track of bucket name and parameter lookup mappings for hydration. This can be used
1818
* both to re-use mappings across hydrations of different sync rule versions, or to generate new mappings.
1919
*/
20-
export interface HydrationState<
21-
T extends BucketDataScope = BucketDataScope,
22-
U extends ParameterLookupScope = ParameterLookupScope
23-
> {
20+
export interface HydrationState {
2421
/**
2522
* Given a bucket data source definition, get the bucket prefix to use for it.
2623
*/
27-
getBucketSourceScope(source: BucketDataSource): T;
24+
getBucketSourceScope(source: BucketDataSource): BucketDataScope;
2825

2926
/**
3027
* Given a bucket parameter lookup definition, get the persistence name to use.
3128
*/
32-
getParameterIndexLookupScope(source: ParameterIndexLookupCreator): U;
29+
getParameterIndexLookupScope(source: ParameterIndexLookupCreator): ParameterLookupScope;
3330
}
3431

3532
/**

0 commit comments

Comments
 (0)