Skip to content

Commit

Permalink
Added interface type for Cloudflare pipelines binding (cloudflare#2654)
Browse files Browse the repository at this point in the history
* Added interface type for cloudflare pipelines binding

* Adding pipelines binding types

---------

Co-authored-by: Oli Yu <oli@cloudflare.com>
  • Loading branch information
hhoughgg and oliy authored Sep 5, 2024
1 parent fa19490 commit 4faf04b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions types/defines/pipelines.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) 2022-2023 Cloudflare, Inc.
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0

export interface Pipeline {
/**
* send takes an array of javascript objects which are
* then received by the pipeline for processing
*
* @param data The data to be sent
*/
send(data: object[]): Promise<void>
}

0 comments on commit 4faf04b

Please sign in to comment.