MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / get

Function get

packages/sdks/web/src/tracker.ts:28–40  ·  view source on GitHub ↗
(target, prop)

Source from the content-addressed store, hash-verified

26 }) as typeof op & ((method: string, ...args: any[]) => void),
27 {
28 get(target, prop) {
29 // Handle special properties
30 if (prop === 'q') {
31 return undefined; // q doesn't exist after SDK loads
32 }
33 // If accessing a method on op, return the bound method
34 const value = (op as any)[prop];
35 if (typeof value === 'function') {
36 return value.bind(op);
37 }
38 // Otherwise return the property from op (for things like options, etc.)
39 return value;
40 },
41 },
42 );
43

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected