UNPKG

@tai-kun/surrealdb

Version:

The SurrealDB SDK for JavaScript

14 lines 672 B
import { Thing as Base, type ThingIdSource, type ThingSource, type ThingTableSource } from "@tai-kun/surrealdb/encodable-datatypes"; import type { TableLike } from "./table"; export type { ThingIdSource, ThingSource, ThingTableSource }; /** * [API Reference](https://tai-kun.github.io/surrealdb.js/v2/api/data/thing) */ export default class Thing<TTable extends ThingTableSource = ThingTableSource, TId extends ThingIdSource = ThingIdSource> extends Base<TTable, TId> { table: TTable; id: TId; constructor(source: ThingSource<TTable, TId>); constructor(table: TTable | TableLike<TTable>, id: TId); clone(): this; } //# sourceMappingURL=thing.d.ts.map