0.2.0 • Published 4 months ago

@types/rdf-validate-datatype v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

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.

0.2.0

4 months ago

0.1.2

8 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.5

6 months ago

0.1.1

3 years ago

0.1.0

3 years ago