FileReader
定义于:.build/typescript/packages/core/src/schema/type.ts:57
一个文件读取器接收文件路径并将数据导入到文档对象中。
BaseReader<T>
新建文件读取器<
T>():FileReader<T>
FileReader<T>
addMetaData()
Section titled “addMetaData()”
staticaddMetaData(filePath): (doc,index) =>void
定义于:.build/typescript/packages/core/src/schema/type.ts:94
filePath
Section titled “filePath”string
(
doc,index):void
number
void
loadDataAsContent()
Section titled “loadDataAsContent()”
abstractloadDataAsContent(fileContent,filename?):Promise<T[]>
定义于:.build/typescript/packages/core/src/schema/type.ts:60
fileContent
Section titled “fileContent”Uint8Array
string
Promise<T[]>
loadData()
Section titled “loadData()”loadData(
filePath):Promise<T[]>
定义于:.build/typescript/packages/core/src/schema/type.ts:65
filePath
Section titled “filePath”string
Promise<T[]>