(target, property)
| 1896 | } |
| 1897 | return new Proxy(klass, { |
| 1898 | get(target, property) { |
| 1899 | const value = target[property as keyof typeof target]; |
| 1900 | if ( |
| 1901 | typeof property === "string" && |
| 1902 | typeof value === "function" && |
| 1903 | isZeroArgumentUIKitFactory(property) |
| 1904 | ) { |
| 1905 | return value.call(target); |
| 1906 | } |
| 1907 | return typeof value === "function" ? value.bind(target) : value; |
| 1908 | }, |
| 1909 | }); |
| 1910 | } |
| 1911 |
no test coverage detected