Fix types

This commit is contained in:
Aaron
2024-10-22 15:32:34 -05:00
parent 0416ff7ec2
commit 3786c7b6d1
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { analytics } from '@/modules/analytics/client';
import { analytics } from '#analytics';
declare const enabledCheckbox: HTMLInputElement;
@@ -56,7 +56,7 @@ export type AnalyticsProvider = (
};
export interface BaseAnalyticsEvent {
meta: EventMetadata;
meta: AnalyticsEventMetadata;
user: {
id: string;
properties: Record<string, string | undefined>;
+1 -1
View File
@@ -4,7 +4,7 @@
"description": "Add analytics to your web extension",
"repository": {
"type": "git",
"url": "https://github.com/wxt-dev/wxt.git",
"url": "git+https://github.com/wxt-dev/wxt.git",
"directory": "packages/analytics"
},
"license": "MIT",
+3 -1
View File
@@ -1,7 +1,9 @@
{
"extends": ["../../tsconfig.base.json", "./.wxt/tsconfig.json"],
"compilerOptions": {
"paths": {},
"paths": {
"#analytics": ["./.wxt/analytics/index.ts"]
},
"types": ["chrome"]
},
"exclude": ["node_modules", "dist"]