(target: any, property: string)
| 1810 | } |
| 1811 | |
| 1812 | function read(target: any, property: string): any { |
| 1813 | if (!target) { |
| 1814 | return null; |
| 1815 | } |
| 1816 | const value = target[property]; |
| 1817 | if (typeof value === "function") { |
| 1818 | try { |
| 1819 | return value.call(target); |
| 1820 | } catch { |
| 1821 | return value; |
| 1822 | } |
| 1823 | } |
| 1824 | return value; |
| 1825 | } |
| 1826 | |
| 1827 | function call(target: any, method: string, ...args: unknown[]): unknown { |
| 1828 | if (!target || typeof target[method] !== "function") { |
no outgoing calls
no test coverage detected