deno.land / x / pothos@release-1713397530 / packages / plugin-dataloader / refs / union.ts
1234567891011// @ts-nocheckimport DataLoader from 'https://cdn.skypack.dev/dataloader?dts';import { SchemaTypes, UnionRef } from '../../core/index.ts';export class LoadableUnionRef<Types extends SchemaTypes, RefShape, Shape, Key, CacheKey> extends UnionRef<RefShape, Shape> { getDataloader; constructor(name: string, getDataloader: (context: Types["Context"]) => DataLoader<Key, Shape, CacheKey>) { super(name); this.getDataloader = getDataloader; }}
Version Info