@tai-kun/surrealdb
Version:
The SurrealDB SDK for JavaScript
20 lines (16 loc) • 521 B
text/typescript
import { defineAsBoundIncluded } from "../_internals/define";
import type { ThingIdSource } from "./thing";
export type BoundIncludedSource = ThingIdSource;
/**
* [API Reference](https://tai-kun.github.io/surrealdb.js/v2/api/data/bound-included)
* @experimental
*/
export default class BoundIncluded<
TValue extends BoundIncludedSource = BoundIncludedSource,
> {
readonly value: TValue; // TODO(tai-kun): 要調査
constructor(source: TValue) {
this.value = source;
defineAsBoundIncluded(this);
}
}