mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-02 14:31:01 +02:00
Relax flow spec return types
This commit is contained in:
parent
976e7ecfc5
commit
2868ced2d3
3 changed files with 4 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
// Term type discriminators matching the wire format
|
// Term type discriminators matching the wire format
|
||||||
// i = IRI, b = BLANK node, l = LITERAL, t = TRIPLE (reified)
|
// i = IRI, b = BLANK node, l = LITERAL, t = TRIPLE (reified)
|
||||||
export type TermType = "i" | "b" | "l" | "t";
|
export type TermType = "i" | "b" | "l" | "t";
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@ const onPdfDecodeMessage = Effect.fn("PdfDecoderService.onMessage")(function* (
|
||||||
yield* Effect.log(`[PdfDecoder] Finished processing document ${documentId}`);
|
yield* Effect.log(`[PdfDecoder] Finished processing document ${documentId}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
export const makePdfDecoderSpecs = (): ReadonlyArray<Spec<never>> => [
|
export const makePdfDecoderSpecs = (): ReadonlyArray<Spec> => [
|
||||||
makeConsumerSpec<Document, PdfDecoderHandlerError>("decode-input", onPdfDecodeMessage),
|
makeConsumerSpec<Document, PdfDecoderHandlerError>("decode-input", onPdfDecodeMessage),
|
||||||
DecodeOutputProducer,
|
DecodeOutputProducer,
|
||||||
DecodeTriplesProducer,
|
DecodeTriplesProducer,
|
||||||
|
|
|
||||||
|
|
@ -278,7 +278,7 @@ const onKnowledgeExtractMessage = Effect.fn("KnowledgeExtractService.onMessage")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export const makeKnowledgeExtractSpecs = (): ReadonlyArray<Spec<never>> => [
|
export const makeKnowledgeExtractSpecs = (): ReadonlyArray<Spec> => [
|
||||||
makeConsumerSpec<Chunk, KnowledgeExtractHandlerError>(
|
makeConsumerSpec<Chunk, KnowledgeExtractHandlerError>(
|
||||||
"extract-input",
|
"extract-input",
|
||||||
onKnowledgeExtractMessage,
|
onKnowledgeExtractMessage,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue