Skip to main content

@rbxts/expect > getProxyValue

getProxyValue() function

Safely gets the value of a proxy, without triggering any metamethods.

Signature:

declare function getProxyValue<T = unknown>(proxy: Proxy<T>): T;

Parameters

Parameter

Type

Description

proxy

Proxy<T>

The proxy to get the value of.

Returns:

T

The inner value of this proxy, type casted to T.