()
| 58 | |
| 59 | // Test that both APIs work together |
| 60 | function 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 |
| 69 | function testTypeInference() { |