Skip to content

Commit 4d72278

Browse files
committed
fixup
1 parent 0e17bc2 commit 4d72278

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/shell-api/src/collection.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ export type Collection<
9898
C extends GenericCollectionSchema = D[keyof D],
9999
N extends StringKey<D> = StringKey<D>
100100
> = CollectionImpl<M, D, C, N> & {
101-
[k in keyof D as k extends `${N}.${infer S}` ? S : never]: Collection<
101+
[k in StringKey<D> as k extends `${N}.${infer S}` ? S : never]: Collection<
102102
M,
103103
D,
104-
D[k]
104+
D[k],
105+
k
105106
>;
106107
};
107108

0 commit comments

Comments
 (0)