(target, property, receiver)
| 303 | |
| 304 | const ComPDFKit = new Proxy(comPDFKitBase, { |
| 305 | get(target, property, receiver) { |
| 306 | const value = Reflect.get(target, property, receiver); |
| 307 | |
| 308 | if ( |
| 309 | typeof property === "string" && |
| 310 | (nativeMethodNames as readonly string[]).includes(property) && |
| 311 | typeof value === "undefined" |
| 312 | ) { |
| 313 | return (...args: unknown[]) => { |
| 314 | const method = getRequiredNativeMethod( |
| 315 | property as (typeof nativeMethodNames)[number] |
| 316 | ) as (...methodArgs: unknown[]) => unknown; |
| 317 | return method(...args); |
| 318 | }; |
| 319 | } |
| 320 | |
| 321 | return value; |
| 322 | }, |
| 323 | }) as ComPDFKitModule; |
| 324 | |
| 325 | export { ComPDFKit }; |
nothing calls this directly
no test coverage detected