@tpluscode/rdfine
Advanced tools
Comparing version 0.4.16 to 0.4.17
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.4.17](https://github.com/tpluscode/rdfine/compare/@tpluscode/rdfine@0.4.16...@tpluscode/rdfine@0.4.17) (2020-07-05) | ||
### Bug Fixes | ||
* make all type exports explicit ([0030d8f](https://github.com/tpluscode/rdfine/commit/0030d8fb6622eb6f8f2d352badcdf98e819df28d)) | ||
## [0.4.16](https://github.com/tpluscode/rdfine/compare/@tpluscode/rdfine@0.4.15...@tpluscode/rdfine@0.4.16) (2020-07-03) | ||
@@ -8,0 +19,0 @@ |
import RdfResourceImpl from './RdfResource'; | ||
export { crossBoundaries } from './lib/path'; | ||
export { ResourceFactory, Constructor, ResourceIndexer } from './lib/ResourceFactory'; | ||
export { RdfResource, ResourceIdentifier } from './RdfResource'; | ||
export type { ResourceFactory, Constructor, ResourceIndexer } from './lib/ResourceFactory'; | ||
export type { RdfResource, ResourceIdentifier } from './RdfResource'; | ||
export * from './lib/decorators'; | ||
export default RdfResourceImpl; |
import { Term } from 'rdf-js'; | ||
import { RdfResource } from '../RdfResource'; | ||
import type { RdfResource } from '../RdfResource'; | ||
export declare function terms(left: Term, right: Term): boolean; | ||
export declare function resources(compareGraph: boolean): (left: RdfResource, right: RdfResource) => boolean; |
@@ -1,3 +0,3 @@ | ||
import { RdfResource } from '../../RdfResource'; | ||
import { Constructor } from '../ResourceFactory'; | ||
import type { RdfResource } from '../../RdfResource'; | ||
import type { Constructor } from '../ResourceFactory'; | ||
export interface ClassElement { | ||
@@ -4,0 +4,0 @@ kind: 'field' | 'method'; |
import { NamespaceBuilder } from '@rdfjs/namespace'; | ||
import { RdfResource } from '../../RdfResource'; | ||
import { ClassDescriptor } from '.'; | ||
import type { RdfResource } from '../../RdfResource'; | ||
import type { ClassDescriptor } from '.'; | ||
declare type Constructor<T = RdfResource> = { | ||
@@ -5,0 +5,0 @@ new (...args: any[]): T; |
import { RdfResource } from '../../../RdfResource'; | ||
import { Literal } from 'rdf-js'; | ||
import { AccessorOptions, ObjectOrFactory } from '../property'; | ||
import type { AccessorOptions, ObjectOrFactory } from '.'; | ||
interface LiteralOptions<R extends RdfResource> { | ||
@@ -5,0 +5,0 @@ type?: typeof Boolean | typeof String | typeof Number; |
@@ -9,7 +9,7 @@ "use strict"; | ||
const data_model_1 = __importDefault(require("@rdfjs/data-model")); | ||
const property_1 = require("../property"); | ||
const _1 = require("."); | ||
const trueLiteral = data_model_1.default.literal('true', rdf_ns_builders_1.xsd.boolean); | ||
function default_1(options = {}) { | ||
const type = options.type || String; | ||
return property_1.propertyDecorator({ | ||
return _1.propertyDecorator({ | ||
...options, | ||
@@ -16,0 +16,0 @@ fromTerm(obj) { |
import { NamedNode } from 'rdf-js'; | ||
import { SingleContextClownface } from 'clownface'; | ||
import { RdfResource, ResourceIdentifier } from '../../../RdfResource'; | ||
import { AccessorOptions, ObjectOrFactory } from '../property'; | ||
import { Constructor, Mixin } from '../../ResourceFactory'; | ||
import type { RdfResource, ResourceIdentifier } from '../../../RdfResource'; | ||
import type { AccessorOptions, ObjectOrFactory } from '.'; | ||
import type { Constructor, Mixin } from '../../ResourceFactory'; | ||
declare type InitialValue = SingleContextClownface<ResourceIdentifier> | RdfResource; | ||
@@ -7,0 +7,0 @@ interface ResourceOptions<R extends RdfResource> { |
@@ -23,6 +23,6 @@ "use strict"; | ||
const rdf_ns_builders_1 = require("@tpluscode/rdf-ns-builders"); | ||
const property_1 = require("../property"); | ||
const _1 = require("."); | ||
const compare = __importStar(require("../../compare")); | ||
function resourcePropertyDecorator(options = {}) { | ||
return property_1.propertyDecorator({ | ||
return _1.propertyDecorator({ | ||
...options, | ||
@@ -29,0 +29,0 @@ fromTerm(obj) { |
import { DatasetCore } from 'rdf-js'; | ||
import { RdfResource } from '../RdfResource'; | ||
import { ResourceIndexer } from './ResourceFactory'; | ||
import type { RdfResource } from '../RdfResource'; | ||
import type { ResourceIndexer } from './ResourceFactory'; | ||
export declare function createProxy<T extends RdfResource<D>, D extends DatasetCore = DatasetCore>(resource: T): T & ResourceIndexer; |
import { Clownface, SingleContextClownface } from 'clownface'; | ||
import { DatasetCore, Term } from 'rdf-js'; | ||
import { RdfResource } from '../RdfResource'; | ||
import type { RdfResource } from '../RdfResource'; | ||
export declare function isList(node: Clownface): boolean; | ||
export declare function enumerateList<T, D extends DatasetCore = DatasetCore>(parent: RdfResource<D>, listNode: SingleContextClownface<Term, D>, fromTerm: (obj: SingleContextClownface<Term, D>) => T | T[]): T[]; |
import { DatasetCore, Literal, NamedNode } from 'rdf-js'; | ||
import { RdfResource, ResourceNode } from '../RdfResource'; | ||
import type { RdfResource, ResourceNode } from '../RdfResource'; | ||
export declare type AnyFunction<A = any> = (...input: any[]) => A; | ||
@@ -4,0 +4,0 @@ export interface Constructor<A extends RdfResource = RdfResource> { |
import { DatasetCore } from 'rdf-js'; | ||
import { RdfResource, ResourceIdentifier } from '../RdfResource'; | ||
import type { RdfResource, ResourceIdentifier } from '../RdfResource'; | ||
export interface TypeCollection<D extends DatasetCore> extends Set<RdfResource<D>> { | ||
@@ -4,0 +4,0 @@ add(value: RdfResource<D> | ResourceIdentifier | string): this; |
{ | ||
"name": "@tpluscode/rdfine", | ||
"version": "0.4.16", | ||
"version": "0.4.17", | ||
"description": "RDF/JS idiomatic, native, effective", | ||
@@ -81,3 +81,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "0abde7732d56d75f18d038fc17800b2ae52d5e35" | ||
"gitHead": "55dc92dba1d55c925a812f9f34fafc8159661eb1" | ||
} |
@@ -5,4 +5,4 @@ /// <reference types="rdfjs__namespace" /> | ||
import { SafeClownface, SingleContextClownface } from 'clownface'; | ||
import { Constructor, Mixin, ResourceCreationOptions, ResourceFactory, ResourceIndexer } from './lib/ResourceFactory'; | ||
import { TypeCollection } from './lib/TypeCollection'; | ||
import type { Constructor, Mixin, ResourceCreationOptions, ResourceFactory, ResourceIndexer } from './lib/ResourceFactory'; | ||
import type { TypeCollection } from './lib/TypeCollection'; | ||
export declare type ResourceIdentifier = BlankNode | NamedNode; | ||
@@ -9,0 +9,0 @@ export declare type ResourceNode<D extends DatasetCore = DatasetCore> = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
110151