Options
All
  • Public
  • Public/Protected
  • All
Menu

An object which is returned by Parse.input given a string.

Hierarchy

  • ParseResult

Index

Properties

den

den: number

The denominator of the fraction. If the input was not a fraction then this will not be a valid number.

num

num: number

The numerator of the fraction. If the input was not a fraction then this will not be a valid number.

rate

rate: string

The rate unit parsed from the input.

unit

unit: string

The unit parsed from the input.

value

value: number

The value parsed. This is always present and finite.

valueDen

valueDen: number

The denominator of the fraction. This is always present, finite, and whole. If the parsed string is not a fraction this will be equal to 1.

valueNum

valueNum: number

The numerator (potentially improper) of the fraction. This is always present and finite. If the parsed string is not a fraction this will be equal to value.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc