Skip to content

Commit

Permalink
feat(Pipeline): Support JsonObject input/output types
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed May 10, 2023
1 parent 6f2a5c3 commit 6d36ecd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pipeline/PipelineInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import BinaryStream from '../core/BinaryStream.js'
import Image from '../core/Image.js'
import Mesh from '../core/Mesh.js'
import PolyData from '../core/PolyData.js'
import JsonObject from '../core/JsonObject.js'

interface PipelineInput {
// Backwards compatibility with IOTypes -- remove?
Expand All @@ -17,6 +18,7 @@ interface PipelineInput {
data:
| string
| Uint8Array
| JsonObject
| TextStream
| BinaryStream
| TextFile
Expand Down
2 changes: 2 additions & 0 deletions src/pipeline/PipelineOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import BinaryStream from '../core/BinaryStream.js'
import Image from '../core/Image.js'
import Mesh from '../core/Mesh.js'
import PolyData from '../core/PolyData.js'
import JsonObject from '../core/JsonObject.js'

interface PipelineOutput {
path?: string
Expand All @@ -16,6 +17,7 @@ interface PipelineOutput {
data?:
| string
| Uint8Array
| JsonObject
| TextStream
| BinaryStream
| TextFile
Expand Down

0 comments on commit 6d36ecd

Please sign in to comment.