Skip to content

Commit

Permalink
corrected type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Jul 14, 2020
1 parent c2d8b5f commit 6a7b5d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export type BulkOperation<Input, ErrorOutput, Output = Input> = (
) => Promise<Array<OperationResult<Input, ErrorOutput, Output>>>;

export function createBuffer<Input extends Entity, ErrorOutput, Output extends Entity = Input>(
bulkOperation: BulkOperation<Input, Output, ErrorOutput>
): Operation<Input, Output, ErrorOutput> {
bulkOperation: BulkOperation<Input, ErrorOutput, Output>
): Operation<Input, ErrorOutput, Output> {
const flushBuffer = new Subject<void>();
const storeUpdateBuffer = new Subject<{
entity: Input;
Expand Down

0 comments on commit 6a7b5d8

Please sign in to comment.