FunctionContext

FunctionContext

new FunctionContext(contextopt, modelopt, targetopt)

Parameters:
Name Type Attributes Description
context DataContext <optional>
model DataModel <optional>
target * <optional>
Source:

Members

context :DataContext

Type:
Source:

model :DataModel

<<<<<<< HEAD ======= >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a <<<<<<< HEAD
Type:
  • DataModel =======
    Type:
    • DataModel >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Source:

    target :*

    Type:
    • *
    Source:

    Methods

    <<<<<<< HEAD

    chars(length) → {Promise|*}

    =======

    chars(length) → {Promise.<T>|*}

    >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a <<<<<<< HEAD ======= >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Parameters:
    <<<<<<< HEAD =======
    Name Type Description
    lengthlength number >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a number
    <<<<<<< HEAD ======= >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Source:
    Returns:
    Type
    <<<<<<< HEAD Promise ======= Promise.<T> >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a | *
    <<<<<<< HEAD

    int(min, max) → {Promise|*}

    =======

    int(min, max) → {Promise.<T>|*}

    >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Generates a random integer value between the given minimum and maximum value
    Parameters:
    Name Type Description
    min number
    max number
    Source:
    <<<<<<< HEAD
    Returns:
    Type
    Promise | * =======
    Returns:
    Type
    Promise.<T> | * >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    <<<<<<< HEAD

    me() → {Promise|*}

    =======

    me() → {Promise.<T>|*}

    >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Source:
    Returns:
    Type
    <<<<<<< HEAD Promise ======= Promise.<T> >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a | *
    <<<<<<< HEAD

    newGuid() → {Promise|*}

    =======

    newGuid() → {Promise.<T>|*}

    >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Source:
    Returns:
    Type
    <<<<<<< HEAD Promise ======= Promise.<T> >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a | *
    <<<<<<< HEAD

    newid() → {Promise|*}

    =======

    newid() → {Promise.<T>|*}

    >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Source:
    Returns:
    Type
    <<<<<<< HEAD Promise ======= Promise.<T> >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a | *
    <<<<<<< HEAD

    now() → {Promise|*}

    =======

    now() → {Promise.<T>|*}

    >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Source:
    Returns:
    Type
    <<<<<<< HEAD Promise ======= Promise.<T> >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a | *
    <<<<<<< HEAD

    password(length) → {Promise|*}

    =======

    password(length) → {Promise.<T>|*}

    >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Parameters:
    Name Type Description
    length number
    Source:
    Returns:
    Type
    <<<<<<< HEAD Promise ======= Promise.<T> >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a | *
    <<<<<<< HEAD

    today() → {Promise|*}

    =======

    today() → {Promise.<T>|*}

    >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Source:
    Returns:
    Type
    <<<<<<< HEAD Promise ======= Promise.<T> >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a | *
    <<<<<<< HEAD

    user() → {Promise|*}

    =======

    user() → {Promise.<T>|*}

    >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a
    Source:
    Returns:
    Type
    <<<<<<< HEAD Promise ======= Promise.<T> >>>>>>> 17c18384399eb4517cbedf593f523886db181e2a | *