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.

20 lines (16 loc) 889 B
'use strict'; var createPhraseFactory = require('./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.createPhraseFactory(false)(descriptor); }; exports.createCustomPhraseFactory = createCustomPhraseFactory; //# sourceMappingURL=createCustomPhraseFactory.js.map