Type alias IdObject<N>

Common reference type for resources in the system

This exists for type safety purposes. Typically, do not define variables of this type directly; use [[toIdObject]] on existing resources.

Type Parameters

Example

import { Resources } from "@truffle/db";

declare const source: Resources.Resource<"sources">;

const { id }: Resources.IdObject<"sources"> = Resources.toIdObject(source);

Generated using TypeDoc