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

Migrate to Typescript #70

Conversation

Prakhar-FF13
Copy link

Resolves #69

Signed-off-by: Prakhar Kumar <prakhar.meerut@gmail.com>
Signed-off-by: Prakhar Kumar <prakhar.meerut@gmail.com>
Signed-off-by: Prakhar Kumar <prakhar.meerut@gmail.com>
@@ -21,40 +27,38 @@ import { IconBrackets } from '@codexteam/icons';
* Code Tool for the Editor.js allows to include code examples in your articles.
*/
export default class CodeTool {
Copy link
Contributor

Choose a reason for hiding this comment

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

try extending BlockToolConstructable

import { IconBrackets } from '@codexteam/icons';

import type { API, HTMLPasteEvent, ToolConfig } from "@editorjs/editorjs";

interface CodeData {
Copy link
Contributor

Choose a reason for hiding this comment

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

Pls add jsdoc for all interfaces and properties

static get isReadOnlySupported() {
return true;
}

/**
* Allow to press Enter inside the CodeTool textarea
Copy link
Contributor

Choose a reason for hiding this comment

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

why all docs have been removed?

Signed-off-by: Prakhar Kumar <prakhar.meerut@gmail.com>
@neSpecc
Copy link
Contributor

neSpecc commented Jul 15, 2024

Outdated

@neSpecc neSpecc closed this Jul 15, 2024
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.

Migrate to TypeScript
2 participants