added missing TrackProperties import on web and updated OpenPanelMethods to fix type errors (#149)
This commit is contained in:
5
packages/sdks/web/src/types.d.ts
vendored
5
packages/sdks/web/src/types.d.ts
vendored
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user