Fix TypeScript type errors across multiple files
This commit is contained in:
15
src/declaration.d.ts
vendored
15
src/declaration.d.ts
vendored
@@ -16,3 +16,18 @@ declare module 'semver';
|
||||
declare module 'tsup';
|
||||
declare module 'uuid';
|
||||
declare module '@umami/esbuild-plugin-css-modules';
|
||||
|
||||
interface UmamiTracker {
|
||||
track: {
|
||||
(): Promise<string>;
|
||||
(eventName: string): Promise<string>;
|
||||
(eventName: string, obj: Record<string, any>): Promise<string>;
|
||||
(properties: Record<string, any>): Promise<string>;
|
||||
(eventFunction: (props: Record<string, any>) => Record<string, any>): Promise<string>;
|
||||
};
|
||||
identify: (data: Record<string, any>) => Promise<string>;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
umami: UmamiTracker;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user