UNPKG

json-machete

Version:
18 lines (17 loc) 763 B
import type { MeshFetch } from '@graphql-mesh/types'; export declare const resolvePath: (path: string, root: any) => any; export declare function getAbsolutePath(path: string, cwd: string): string; export declare function getCwd(path: string): string; export declare function dereferenceObject<T extends object, TRoot = T>(obj: T, { cwd, fetch, externalFileCache, refMap, root, debugLogFn, readFileOrUrl, resolvedObjects, }: { cwd?: string; fetch: MeshFetch; externalFileCache?: Map<string, any>; refMap?: Map<string, any>; root?: TRoot; debugLogFn?(message?: any): void; readFileOrUrl(path: string, opts: { cwd: string; fetch: MeshFetch; }): Promise<any> | any; resolvedObjects?: WeakSet<any>; }): Promise<T>;