bypassStrictProxy<T>
Bypasses strict proxy to access the underlying object.
If the object is wrapped in a strict proxy, returns the unwrapped target. Otherwise, returns the object as-is. This allows safely accessing optional properties without triggering the proxy’s error on missing props.
Import:
import { bypassStrictProxy } from 'obsidian-dev-utils/strict-proxy';Signature:
function bypassStrictProxy(obj: T): TParameters:
| Parameter | Type | Description |
|---|---|---|
obj | T | The object to bypass. |
Returns: T — The unwrapped object.