Installation
npm install --save @types/rdfjs__namespace
Summary
This package contains type definitions for @rdfjs/namespace (https://github.com/rdfjs-base/namespace).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rdfjs__namespace.
import { DataFactory, NamedNode } from 'rdf-js';
declare function namespace<TermNames extends string = string>(baseIRI: string, options?: namespace.BuilderOptions): namespace.NamespaceBuilder<TermNames>;
declare namespace namespace {
type NamespaceBuilder<TermNames extends string = any> = Record<TermNames, NamedNode> & {
(property?: TemplateStringsArray | TermNames): NamedNode;
};
interface BuilderOptions {
factory?: DataFactory | undefined;
}
}
export = namespace;
Additional Details
- Last updated: Thu, 08 Jul 2021 20:20:20 GMT
- Dependencies: @types/rdf-js
- Global values: none
Credits
These definitions were written by Chris Wilkinson.