@plattar/plattar-api
Version:
Module for interfacing with the Plattar API (https://www.plattar.com)
9 lines (7 loc) • 394 B
TypeScript
import { PlattarObject } from "./plattar-object";
export class PlattarObjectRelations {
constructor(parent: PlattarObject);
get parent(): PlattarObject;
filter<T extends PlattarObject>(obj: new (...args: [any]) => T, id: string | undefined = undefined): [T];
find<T extends PlattarObject>(obj: new (...args: [any]) => T, id: string | null | undefined = null): T | undefined;
}