@rdfine/hydra
Version:
> ## @rdfine/hydra > ### Generated JavaScript types for Hydra Core Vocabulary
12 lines (11 loc) • 399 B
JavaScript
import { hydra } from '@tpluscode/rdf-ns-builders';
import { TemplateExpander } from './TemplateExpander.js';
export function IriTemplateExMixin(base) {
class IriTemplateExClass extends base {
expand(first, ...rest) {
return new TemplateExpander(this).expand(first, ...rest);
}
}
return IriTemplateExClass;
}
IriTemplateExMixin.appliesTo = hydra.IriTemplate;