Skip to main content

ValueObjectUtils

Utils that work with Roblox Value objects (and also ValueObject)

Functions

syncValue

ValueObjectUtils.syncValue(
fromValueObject<T>,
toValueObject<T>
) → MaidTask

Syncs the value from from to to.

observeValueBrio

ValueObjectUtils.observeValueBrio(valueObjectValueObject<T>) → Observable<Brio<T>>

Observes the current value of the ValueObject

observeValue

deprecated in 13.18.0
</>
This was deprecated in 13.18.0
This item is deprecated. Do not use it for new work.
ValueObjectUtils.observeValue(valueObjectValueObject<T>) → Observable<T>

Observes the current value of the ValueObject

Show raw api
{
    "functions": [
        {
            "name": "syncValue",
            "desc": "Syncs the value from `from` to `to`.",
            "params": [
                {
                    "name": "from",
                    "desc": "",
                    "lua_type": "ValueObject<T>"
                },
                {
                    "name": "to",
                    "desc": "",
                    "lua_type": "ValueObject<T>"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "MaidTask"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 22,
                "path": "src/valueobject/src/Shared/ValueObjectUtils.lua"
            }
        },
        {
            "name": "observeValue",
            "desc": "Observes the current value of the ValueObject",
            "params": [
                {
                    "name": "valueObject",
                    "desc": "",
                    "lua_type": "ValueObject<T>"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<T>"
                }
            ],
            "function_type": "static",
            "deprecated": {
                "version": "13.18.0",
                "desc": null
            },
            "source": {
                "line": 40,
                "path": "src/valueobject/src/Shared/ValueObjectUtils.lua"
            }
        },
        {
            "name": "observeValueBrio",
            "desc": "Observes the current value of the ValueObject",
            "params": [
                {
                    "name": "valueObject",
                    "desc": "",
                    "lua_type": "ValueObject<T>"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<T>>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 51,
                "path": "src/valueobject/src/Shared/ValueObjectUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "ValueObjectUtils",
    "desc": "Utils that work with Roblox Value objects (and also ValueObject)",
    "source": {
        "line": 6,
        "path": "src/valueobject/src/Shared/ValueObjectUtils.lua"
    }
}