added missing TrackProperties import on web and updated OpenPanelMethods to fix type errors (#149)

This commit is contained in:
Pablo Lopez
2025-05-08 16:20:22 -03:00
committed by GitHub
parent eaab2aad22
commit 4adebf40ac

View File

@@ -1,4 +1,7 @@
import type { OpenPanel, OpenPanelOptions } from './';
import type {
TrackProperties,
} from '@openpanel/sdk';
type ExposedMethodsNames =
| 'track'
@@ -19,7 +22,7 @@ export type OpenPanelMethodNames = ExposedMethodsNames | 'init' | 'screenView';
export type OpenPanelMethods =
| ExposedMethods
| ['init', OpenPanelOptions]
| ['screenView', string | TrackProperties, TrackProperties];
| ['screenView', string | TrackProperties | undefined, TrackProperties | undefined];
declare global {
interface Window {