-
Notifications
You must be signed in to change notification settings - Fork 125
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
feat(typescript): refactor paragraph tool #69
base: master
Are you sure you want to change the base?
Conversation
/** | ||
* Tool data for input and output | ||
*/ | ||
private _data: ParagraphToolData = {}; |
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.
private _data: ParagraphToolData = {}; | |
private data: ParagraphToolData = {}; |
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.
There are already getters and setters for data
. So, there is no point in changing.
*/ | ||
private readonly placeholder: string; | ||
|
||
private readonly preserveBlank: boolean; |
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.
duplication. You already have config
d3f4b7d
to
d060cf7
Compare
d060cf7
to
3959139
Compare
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.
install our eslint config
export interface PasteConfig { | ||
tags: string[]; | ||
} | ||
|
||
/** | ||
* Used by Editor API to display the module in the toolbox | ||
*/ | ||
export interface Toolbox { | ||
icon: string; | ||
title: string; | ||
} |
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.
why do you need these types?
I've replaced Webpack builder with Vite. Also, I've added TypeScript support. Now builder generates declaration files.