Description

This module provides utility functions, mostly to be used by plugin creators or developers.

 

API

RoundFunc

public export type

export type RoundFunc = (v: number) => number;

RoundHandlerFunc

public export type

export type RoundHandlerFunc = string | RoundFuncName | RoundFunc;

parseRoundFunc()

public export function

export function parseRoundFunc(handler: RoundHandlerFunc): RoundFunc;

parseHandler()

public export function

export function parseHandler<T, TO>(handler: T, defaultHandler: T,
    _mapper: any, args: ABeamerArgs): TO;

parseEnum()

public export function

export function parseEnum<T>(value: T | string, mapper: any,
    defValue?: T | string | undefined): T;