UNPKG

@rdfine/hydra

Version:

> ## @rdfine/hydra > ### Generated JavaScript types for Hydra Core Vocabulary

17 lines (16 loc) 887 B
import type { Constructor, RdfResource } from '@tpluscode/rdfine'; import { RdfResourceCore } from '@tpluscode/rdfine/RdfResource'; import type { AnyPointer } from 'clownface'; import type { IriTemplate } from '../index.js'; export interface IriTemplateEx { expand(base?: string, ...models: Array<AnyPointer | RdfResource>): string; expand(...models: Array<AnyPointer | RdfResource>): string; } declare module '@rdfine/hydra' { interface IriTemplate extends IriTemplateEx { } } export declare function IriTemplateExMixin<Base extends Constructor<Partial<Omit<IriTemplate, keyof IriTemplateEx>> & RdfResourceCore>>(base: Base): Constructor<RdfResourceCore & IriTemplateEx> & Base; export declare namespace IriTemplateExMixin { var appliesTo: import("@rdfjs/types").NamedNode<string> & import("@rdfjs/types").NamedNode<"http://www.w3.org/ns/hydra/core#IriTemplate">; }