Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Oct 22, 2024
1 parent 0416ff7 commit 3786c7b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/analytics/entrypoints/popup/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { analytics } from '@/modules/analytics/client';
import { analytics } from '#analytics';

declare const enabledCheckbox: HTMLInputElement;

Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/modules/analytics/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export type AnalyticsProvider = (
};

export interface BaseAnalyticsEvent {
meta: EventMetadata;
meta: AnalyticsEventMetadata;
user: {
id: string;
properties: Record<string, string | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion packages/analytics/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down

0 comments on commit 3786c7b

Please sign in to comment.