API referenceEngine
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
| Parameter | Type |
|---|---|
value | SnapshotValue |
Returns
Promise<string>
snapshotValues()
function snapshotValues(model): (input, path, ancestors) => SnapshotValue;Defined in: bear/engine/snapshot-value.ts:17
Parameters
| Parameter | Type |
|---|---|
model | ModelView |
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
| Parameter | Type |
|---|---|
value | SnapshotValue |
Returns
string