Options
All
  • Public
  • Public/Protected
  • All
Menu

A DynamicValue reducer returning the input JSON parsed

example

new ParsedValue(new TextValue(JSON.stringify({t:"test"}))).onValue(parsed=>
 parsed.t === "test" //true
)

Type parameters

  • V

Hierarchy

  • ParsedValue

Implements

Constructors

Properties

Methods

Constructors

constructor

Parameters

Returns ParsedValue

Properties

__variant__

__variant__: string = "ParsedValue"

input

input: DynamicValue<string>

name

name: string | void

Methods

getValue

  • getValue(): Promise<any>

Returns Promise<any>

onValue

Parameters

Returns Unsubscriber

Static fromJSON

  • fromJSON(json: object): any

Parameters

  • json: object
    • input: any
    • Optional name?: string

Returns any

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.