Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace IObservableJSON

The namespace for IObservableJSON related interfaces.

Index

Type aliases

ChangeType

ChangeType: "add" | "remove" | "change"

The change types which occur on an observable map.

Properties

changed

changed: ISignal<this, IChangedArgs<ReadonlyPartialJSONValue | undefined>>

A signal emitted when the map has changed.

isDisposed

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

size

size: number

The number of key-value pairs in the map.

type

type: "Map"

The type of the Observable.

Methods

clear

  • clear(): void

delete

  • delete(key: string): (ReadonlyPartialJSONValue | undefined) | undefined

dispose

  • dispose(): void

get

  • get(key: string): (ReadonlyPartialJSONValue | undefined) | undefined

has

  • has(key: string): boolean

keys

  • keys(): string[]

set

  • set(key: string, value: ReadonlyPartialJSONValue | undefined): (ReadonlyPartialJSONValue | undefined) | undefined
  • Set a key-value pair in the map

    Parameters

    • key: string

      The key to set.

    • value: ReadonlyPartialJSONValue | undefined

      The value for the key.

    Returns (ReadonlyPartialJSONValue | undefined) | undefined

    the old value for the key, or undefined if that did not exist.

toJSON

  • toJSON(): PartialJSONObject

values

  • values(): (ReadonlyPartialJSONValue | undefined)[]

Generated using TypeDoc