UNPKG

@type-r/models

Version:

The serializable type system for JS and TypeScript

5 lines (4 loc) 267 B
import { Collection } from '../collection'; import { Model } from '../model'; export declare type CollectionReference = (() => Collection) | Collection | string; export declare function parseReference(collectionRef: CollectionReference): (root: Model) => Collection;