Skip to content

Conversation

bgturner
Copy link

I was using BrowserSync within a different package and noticed that the types for the notify indicate that it's only a boolean:

Screenshot 2024-11-12 at 10 02 56 AM

But it looks like the IBrowserSyncOptions interface has the notify key accepting a CSS styles object or array of CSS style rules.

I'm not as familiar with this project, so I just copied the type definition, but when I run a diff between the InitOptions and IBrowserSyncOptions, it looks like they're mostly the same except for InitOptions having:

    userPlugins: any[];
    session: number;

Screenshot 2024-11-12 at 11 18 58 AM

Should the types between these two things the same, or should we consider importing and extending IBrowserSyncOptions?

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.

1 participant