Skip to content
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

Rewrite ckeditor5-cloud-services and ckeditor5-ckbox to TypeScript. #13314

Merged
merged 12 commits into from
Feb 1, 2023

Conversation

arkflpc
Copy link
Contributor

@arkflpc arkflpc commented Jan 20, 2023

Suggested merge commit message (convention)

Other (ckbox): Rewrite ckeditor5-ckbox to TypeScript. Closes #13005.
Other (cloud-services): Rewrite ckeditor5-cloud-services to TypeScript. Closes #13007.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

@mremiszewski mremiszewski self-requested a review January 24, 2023 12:26

import CKBoxUI from './ckboxui';
import CKBoxEditing from './ckboxediting';
import type { TokenUrl } from '@ckeditor/ckeditor5-cloud-services/src/cloudservices';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move above local imports

*/
async getAvailableCategories( offset = 0 ) {
public async getAvailableCategories( offset: number = 0 ): Promise<Array<{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider creating a type for Category

/**
* @inheritDoc
*/
public static get requires(): ContextPluginDependencies {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just PluginDependencies?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CloudServices is a ContextPlugin, not a Plugin. Returning PluginDependencies would make it incompatible with PluginCollection used in Context.

packages/ckeditor5-cloud-services/src/cloudservices.ts Outdated Show resolved Hide resolved
*
* Without a properly working token endpoint (token URL) CKEditor plugins will not be able to connect to CKEditor Cloud Services.
*/
tokenUrl: TokenUrl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not optional on purpose?

@arkflpc arkflpc merged commit 37dee87 into master Feb 1, 2023
@arkflpc arkflpc deleted the ck/13005-ts-ckbox branch February 1, 2023 12:45
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.

[TS] Rewrite ckeditor5-cloud-services into TypeScript [TS] Rewrite ckeditor5-ckbox into TypeScript
2 participants