@statezero/core
Version:
The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate
22 lines (21 loc) • 617 B
TypeScript
/**
* Simple graph for tracking queryset store ancestry
*/
export class QuerysetStoreGraph {
constructor(hasStoreFn?: null);
graph: any;
hasStoreFn: () => boolean;
processedQuerysets: Set<any>;
setHasStoreFn(hasStoreFn: any): void;
/**
* Add a queryset and its parent relationship to the graph
*/
addQueryset(queryset: any): void;
/**
* Find the root store for a queryset
* @param {Object} queryset - The queryset to analyze
* @returns {Object} { isRoot: boolean, root: semanticKey|null }
*/
findRoot(queryset: Object): Object;
clear(): void;
}