You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because it is unclear whether a type definition is public or internal and so available from Stylelint plugin packages, there is a problem in that we cannot safely refactor type definitions.
There are a few ways to limit the publicity of type definitions:
Add the @internal JSDoc annotation and a warning message like this:
You're probably the most familiar with our types than anyone else 😄 Do you have a preference for how to combine the approaches? We can roll into v15 so that it can be a breaking change.
Because it is unclear whether a type definition is public or internal and so available from Stylelint plugin packages, there is a problem in that we cannot safely refactor type definitions.
There are a few ways to limit the publicity of type definitions:
@internal
JSDoc annotation and a warning message like this:stylelint/types/stylelint/index.d.ts
Lines 539 to 544 in 11acf31
_
prefix to types or type members like this:stylelint/types/stylelint/index.d.ts
Lines 544 to 550 in 11acf31
export
from internal types as possible. This way is smarter, but it may need to removenamespace
:stylelint/types/stylelint/index.d.ts
Line 6 in 11acf31
I believe we need to reorganize type definitions by combining such ways well.
I'm happy to hear any feedback.
Ref:
The text was updated successfully, but these errors were encountered: