Entity / foldkit-entity

MemoryImplementation

interface · packages/entity/src/operators.ts:22

interface MemoryImplementation {
  readonly operator: OperatorDescriptor
  readonly run: (
    args: ReadonlyArray<unknown>,
    context: OperatorContext,
  ) => unknown
}

One operator's in-memory implementation: a pure function of stored values.

Members

MemoryImplementation.operator

property · packages/entity/src/operators.ts:23

readonly operator: OperatorDescriptor

MemoryImplementation.run

property · packages/entity/src/operators.ts:24

readonly run: (
  args: ReadonlyArray<unknown>,
  context: OperatorContext,
) => unknown