js-util

Home > rc-js-util > IDebugProtectedView > createProtectedView

IDebugProtectedView.createProtectedView() method

Create a proxy to the view, if invalidate called then access of non safeKeys will cause a debug error.

Signature:

createProtectedView<T extends object>(view: T): T;

Parameters

Parameter Type Description
view T  

Returns:

T