UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

15 lines (14 loc) 685 B
import { Projection } from 'alinea/core/pages/Projection'; import { Realm } from 'alinea/core/pages/Realm'; import DataLoader from 'dataloader'; import { Store } from '../Store.js'; import type { EntryResolver } from './EntryResolver.js'; export declare class LinkResolver { resolver: EntryResolver; store: Store; realm: Realm; loaders: Map<Projection, DataLoader<string, object, string>>; constructor(resolver: EntryResolver, store: Store, realm: Realm); load(projection: Projection): DataLoader<string, object, string>; resolveLinks<P extends Projection>(projection: P, entryIds: ReadonlyArray<string>): Promise<Array<Projection.Infer<P> | undefined>>; }