Skip to content

Commit a37f68a

Browse files
committed
chore(types): make StreamTrimArgs a generic function
1 parent 61f003a commit a37f68a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export type DIALECT = StaticModifier<typeof DIALECT>;
247247
export const NOMKSTREAM = createModifier("NOMKSTREAM");
248248
export type NOMKSTREAM = StaticModifier<typeof NOMKSTREAM>;
249249

250-
const StreamTrimArgs = (Threshold: TSchema) =>
250+
const StreamTrimArgs = <TThreshold extends TSchema>(Threshold: TThreshold) =>
251251
Type.Union([
252252
Type.Tuple([Threshold]),
253253
Type.Tuple([Threshold, Type.Literal("LIMIT"), Type.Number()]),

0 commit comments

Comments
 (0)