fix(jetstream): use ReturnType<typeof setTimeout> for bulk timer
All checks were successful
CI / check (push) Successful in 14s
All checks were successful
CI / check (push) Successful in 14s
setTimeout returns an opaque Timeout type in newer Deno releases, so the previous timer: number annotation fails type checking in CI. Using ReturnType<typeof setTimeout> is portable across Deno versions and runtimes.
This commit is contained in:
@@ -15,7 +15,7 @@ export type BulkDeps = {
|
||||
|
||||
type BulkBuffer = {
|
||||
records: Record<string, unknown>[];
|
||||
timer: number;
|
||||
timer: ReturnType<typeof setTimeout>;
|
||||
};
|
||||
|
||||
const bulkBuffers = new Map<string, BulkBuffer>();
|
||||
|
||||
Reference in New Issue
Block a user