Skip to Content
Bear documentation

snapshot-value

Import from bear/engine/snapshot-value.

Type Aliases

SnapshotValue

type SnapshotValue = 
  | null
  | undefined
  | string
  | number
  | boolean
  | readonly SnapshotValue[]
  | {
[key: string]: SnapshotValue;
};

Defined in: bear/engine/snapshot-value.ts:8

Functions

contentId()

function contentId(value): Promise<string>;

Defined in: bear/engine/snapshot-value.ts:116

Parameters

ParameterType
valueSnapshotValue

Returns

Promise<string>


snapshotValues()

function snapshotValues(model): (input, path, ancestors) => SnapshotValue;

Defined in: bear/engine/snapshot-value.ts:17

Parameters

ParameterType
modelModelView

Returns

(input, path, ancestors) => SnapshotValue


valueKey()

function valueKey(value): string;

Defined in: bear/engine/snapshot-value.ts:100

Tagged containers keep undefined distinct from null, even inside arrays.

Parameters

ParameterType
valueSnapshotValue

Returns

string

On this page