Skip to content

fix(types): AnalyticsPlugin definition#458

Merged
DavidWells merged 1 commit intoDavidWells:masterfrom
amitbeck:patch-2
Jul 18, 2025
Merged

fix(types): AnalyticsPlugin definition#458
DavidWells merged 1 commit intoDavidWells:masterfrom
amitbeck:patch-2

Conversation

@amitbeck
Copy link
Copy Markdown
Contributor

@amitbeck amitbeck commented Apr 6, 2025

Add missing parentheses around conditional type to preserve extending AnalyticsPluginBase in AnalyticsPlugin

Currently AnalyticsPlugin is equivalent to Record<string, unknown> (See in TypeScript Playground):

image

With the proposed change AnalyticsPlugin correctly preserves fields inherited from AnalyticsPluginBase(See in TypeScript Playground):

image


Related to #114

Add missing parentheses around conditional type to preserve extending `AnalyticsPluginBase` in `AnalyticsPlugin`
@homostellaris
Copy link
Copy Markdown

Would be really helpful to get this merged.

@DavidWells DavidWells merged commit 64c6974 into DavidWells:master Jul 18, 2025
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants