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

Function testBothAPIs

packages/sdks/web/src/types.debug.ts:60–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59// Test that both APIs work together
60function testBothAPIs() {
61 // Mix and match - both should work
62 window.op('track', 'event1', { prop: 'value' });
63 window.op.track('event2', { prop: 'value' });
64 window.op('identify', { profileId: '123' });
65 window.op.identify({ profileId: '456' });
66}
67
68// Test autocomplete and type inference
69function testTypeInference() {

Callers

nothing calls this directly

Calls 2

trackMethod · 0.45
identifyMethod · 0.45

Tested by

no test coverage detected