@graphty/graphty-element / extend / ImportInput
Type Alias: ImportInput ​
ImportInput =
string|Uint8Array|ReadableStream<Uint8Array> |AsyncIterable<string|Uint8Array>
Defined in: graph-io/dist/src/types.d.ts:19
What an importer reads: whole text, whole bytes, a byte stream (a browser File.stream(), a fetch body) or an async iterable of text or byte chunks. Bytes are decoded strictly in the encoding the encoding option, a byte order mark or the file's own declaration names, else as UTF-8 (undeclared bytes that are not UTF-8 are read as windows-1252 with a warning), so an invalid sequence is a parse-error and never a silent U+FFFD that could alias two ids.