FormatDocument<Metadata>: ((document: Document<Metadata>) => {
    id: string;
    name: string;
    score: number;
    text: string;
})

Type Parameters

  • Metadata extends Record<string, any> = Record<string, any>