You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
855 B
34 lines
855 B
import type {
|
|
ConnectedLdoDataset,
|
|
ConnectedPlugin,
|
|
ExpandDeep,
|
|
LQInput,
|
|
LQReturn,
|
|
} from "@ldo/connected";
|
|
import type { LdoBase, ShapeType } from "@ldo/ldo";
|
|
import type { SubjectNode } from "@ldo/rdf-utils";
|
|
|
|
/**
|
|
* @internal
|
|
*
|
|
* Creates a useMatchSubject function.
|
|
*/
|
|
export function createUseLinkQuery<Plugins extends ConnectedPlugin[]>(
|
|
dataset: ConnectedLdoDataset<Plugins>,
|
|
) {
|
|
/**
|
|
* Returns an array of matching linked data objects. Triggers a rerender if
|
|
* the data is updated.
|
|
*/
|
|
return function useQueryLink<
|
|
Type extends LdoBase,
|
|
QueryInput extends LQInput<Type>,
|
|
>(
|
|
shapeType: ShapeType<Type>,
|
|
startingResource: string,
|
|
startingSubject: SubjectNode | string,
|
|
linkQuery: QueryInput,
|
|
): ExpandDeep<LQReturn<Type, QueryInput>> | undefined {
|
|
throw new Error("Not Implemented");
|
|
};
|
|
}
|
|
|