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.

15 lines 1.22 kB
import { ParagraphSpec, TextParagraphSpec, BulletsParagraphSpec, HeadingParagraphSpec } from '../paragraph'; import { PhraseSpec, CustomPhraseSpec, TextPhraseSpec, EntityPhraseSpec } from '../phrase'; import { CustomBlockElement } from '../common'; import type { SectionSpec, StandardSectionSpec } from '../structure'; export declare function isCustomSection(spec: SectionSpec): spec is CustomBlockElement; export declare function isCustomParagraph(spec: ParagraphSpec): spec is CustomBlockElement; export declare function isStandardSection(spec: SectionSpec): spec is StandardSectionSpec; export declare function isTextParagraph(spec: ParagraphSpec): spec is TextParagraphSpec; export declare function isBulletParagraph(spec: ParagraphSpec): spec is BulletsParagraphSpec; export declare function isHeadingParagraph(spec: ParagraphSpec): spec is HeadingParagraphSpec; export declare function isCustomPhrase(spec: PhraseSpec): spec is CustomPhraseSpec; export declare function isEntityPhrase(spec: PhraseSpec): spec is EntityPhraseSpec; export declare function isTextPhrase(spec: PhraseSpec): spec is TextPhraseSpec; export declare function getHeadingWeight(pType: string): number; //# sourceMappingURL=isSpecType.d.ts.map