0.2.0 • Published 4 months ago
@types/rdf-validate-datatype v0.2.0
Installation
npm install --save @types/rdf-validate-datatype
Summary
This package contains type definitions for rdf-validate-datatype (https://github.com/zazuko/rdf-validate-datatype#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdf-validate-datatype.
index.d.ts
// Type definitions for rdf-validate-datatype 0.1
// Project: https://github.com/zazuko/rdf-validate-datatype#readme
// Definitions by: Tomasz Pluskiewicz <https://github.com/tpluscode>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Term, Quad, NamedNode } from 'rdf-js';
interface ValidatorFunc {
(value: string): boolean;
}
declare function validateTerm(term: Term): boolean;
declare function validateQuad(quad: Quad): boolean;
interface Registry {
register(datatype: NamedNode, validatorFunc: ValidatorFunc): void;
find(datatype: NamedNode | null | undefined): ValidatorFunc | null;
}
declare const RdfValidateDatatype: {
validateTerm: typeof validateTerm,
validateQuad: typeof validateQuad,
validators: Registry
};
export = RdfValidateDatatype;
Additional Details
- Last updated: Thu, 03 Jun 2021 17:02:05 GMT
- Dependencies: @types/rdf-js
- Global values: none
Credits
These definitions were written by Tomasz Pluskiewicz.