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