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.

18 lines (15 loc) 830 B
import { createPhraseFactory } from './createPhraseFactory.js'; /** * 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`. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any var createCustomPhraseFactory = function (descriptor) { return createPhraseFactory(false)(descriptor); }; export { createCustomPhraseFactory }; //# sourceMappingURL=createCustomPhraseFactory.js.map