Skip to content

Migration of Tool from JavaScript to Typescript#73

Open
Koppeks wants to merge 6 commits into
editor-js:masterfrom
Koppeks:koppeks/typescript-compatibility
Open

Migration of Tool from JavaScript to Typescript#73
Koppeks wants to merge 6 commits into
editor-js:masterfrom
Koppeks:koppeks/typescript-compatibility

Conversation

@Koppeks

@Koppeks Koppeks commented Sep 3, 2024

Copy link
Copy Markdown

This pull request migrates the tool from JavaScript to TypeScript, enhancing static type-checking, improved maintainability, and better developer tooling support.
The migration includes type definitions, interface creation, and refactoring to ensure type safety across the code.
Issue #72

Comment thread src/index.ts
Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
@Koppeks

Koppeks commented Sep 4, 2024

Copy link
Copy Markdown
Author

I addressed all the reviews that were pending, let me know if I miss something or you need more changes

@dependentmadani dependentmadani left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

well done, few modifications needs to be done

Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
Comment thread package.json Outdated
Comment thread src/index.ts
Comment thread src/index.ts
Comment thread src/index.ts Outdated
@dependentmadani

Copy link
Copy Markdown

Please make sure to not resolve the conversation next time, it is up to the reviewer to resolve it when it is fixed.

Comment thread src/index.ts
* @returns {Array}
*/
renderSettings() {
renderSettings(): Array<TuneSetting> {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this member function needs jsdocs

Comment thread src/index.ts
_make(tagName, classNames = null, attributes = {}) {


_make(tagName: string, classNames?: string[] | string, attributes: object = {}): HTMLElement | HTMLImageElement{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

can you find a way to reduce the length of this line, so it can be simple to read?

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.

2 participants