-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix generated .d.ts
in builds to include types of loaded plugins
#13678
Conversation
.d.ts
in builds to include types of loaded plugins
I would improve the merge message a bit:
|
@@ -32,82 +32,80 @@ import { CloudServices } from '@ckeditor/ckeditor5-cloud-services'; | |||
*/ | |||
import '../theme/theme.css'; | |||
|
|||
export default class BalloonEditor extends BalloonEditorBase {} | |||
export default class BalloonEditor extends BalloonEditorBase { | |||
public static override builtinPlugins = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the trick work because builtinPlugins
have a tuple type with all plugin types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, tuple uses types imported from plugin packages and this gives a TypeScript a chance to load module augmentations with them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Suggested merge commit message (convention)
Fix (build-*): Typings from the CKEditor 5 builds contain types of loaded plugins. Closes #13676.