Fix TypeScript type errors across multiple files
This commit is contained in:
1 parent
860e6390f1
commit
a3733b0424
12 files changed
+38
-15
No files matched your search
Vendored
+15
@@ -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