UNPKG

@antv/t8

Version:

T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative JSON Schema syntax that can be used to describe the content of data interpretation reports.

13 lines 786 B
import { PhraseDescriptor, CustomPhraseDescriptor } from './types'; /** * Creates a factory function for custom phrase descriptors. * * This function takes a descriptor object and returns a new descriptor with the * `isEntity` property set to `false`. The descriptor is expected to be of type * `CustomPhraseDescriptor<MetaData>`, where `MetaData` is the type of the metadata. * * @param descriptor - The descriptor object to be converted into a custom phrase descriptor. * @returns A new custom phrase descriptor with the `isEntity` property set to `false`. */ export declare const createCustomPhraseFactory: <MetaData = any>(descriptor: Omit<CustomPhraseDescriptor<MetaData>, "isEntity">) => PhraseDescriptor<MetaData>; //# sourceMappingURL=createCustomPhraseFactory.d.ts.map