Skip to main content
Module

x/fathym_common/src/fluent/FluentBuilder.ts>FluentBuilder

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
class FluentBuilder
import { FluentBuilder } from "https://deno.land/x/fathym_common@v0.2.147-integration/src/fluent/FluentBuilder.ts";

A dynamic, Proxy based, Fluent API builder. It handles all of the data management when using the Fluent API methods. Supports defining custom handlers to invoke in varying scopes.

Constructors

new
FluentBuilder(
keyDepth?: string[],
model?: TBuilderModel,
)

Type Parameters

TBuilderModel

Properties

protected
readonly
handlers: FluentBuilderMethodsHandlers
protected
readonly
keyDepth: string[]
protected
readonly
model: FluentBuilderRoot<TBuilderModel>

Methods

protected
applyVirtual(
applyTarget: this,
prop: string | symbol,
applyReceiver: any,
applyArgs: any[],
keys?: string[],
backStep?: boolean,
): FluentBuilder<TBuilderModel>
protected
createProxy(): this
protected
executeActual(
target: this,
prop: string | symbol,
receiver: any,
): unknown
protected
executeHandlers(
target: this,
prop: string | symbol,
_receiver: any,
): unknown
protected
executeVirtual(
target: this,
prop: string | symbol,
receiver: any,
keys?: string[],
): unknown
protected
executeVirtualObject(
target: this,
prop: string | symbol,
_receiver: any,
args: unknown[],
backStep?: boolean,
): { Keys: string[]; Prop: string; Value: unknown; } | undefined
protected
executeVirtualProperty(
_target: this,
prop: string | symbol,
_receiver: any,
args: unknown[],
_backStep?: boolean,
): ReturnType<this.executeVirtualObject>
protected
executeVirtualRecord(
target: this,
prop: string | symbol,
_receiver: any,
args: unknown[],
backStep?: boolean,
): ReturnType<this.executeVirtualObject>
protected
loadProxyHandler(keys?: string[]): ProxyHandler<this>
protected
workingRecords(backStep?: boolean): Record<string, unknown>
Export<TExport extends TBuilderModel = TBuilderModel>(): TExport
With(action: (x: this) => void): this & SelectFluentMethods<ValueType<ReturnType<this.workingRecords>>, TBuilderModel>