UNPKG

microdata-rdf-streaming-parser

Version:
15 lines (14 loc) 642 B
import type * as RDF from '@rdfjs/types'; import type { IItemScope } from '../IItemScope'; import { Util } from '../Util'; import type { IItemPropertyHandler } from './IItemPropertyHandler'; /** * Handler for an item property with a number attribute. */ export declare class ItemPropertyHandlerNumber implements IItemPropertyHandler { private readonly tagName; private readonly attributeName; constructor(tagName: string, attributeName: string); canHandle(tagName: string, attributes: Record<string, string>): boolean; getObject(attributes: Record<string, string>, util: Util, itemScope: IItemScope): RDF.Quad_Object; }