Type alias FormatDocument<Metadata>
FormatDocument<Metadata>: ((document) => { id: string; name: string; score: number; text: string; }) Type Parameters
Metadata extends Record<string, any> = Record<string, any>
Type declaration
- (document): {
id: string;
name: string;
score: number;
text: string;
} Returns {
id: string;
name: string;
score: number;
text: string;
}
id: string
name: string
score: number
text: string