Skip to content

Commit

Permalink
refactor: added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekaN2 committed Mar 2, 2023
1 parent 98e1fd6 commit d3f4b7d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,19 @@ export default class Paragraph implements BlockTool {
*/
private readonly element: HTMLDivElement;

/**
* CSS class names
*/
private readonly CSS: ParagraphToolCSS;

/**
* Placeholder for paragraph if it is first Block
*/
private readonly placeholder: string;

/**
* Will save empty paragraphs if set to true
*/
private readonly preserveBlank: boolean;

/**
Expand Down
3 changes: 3 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export interface ParagraphToolConfig extends ToolConfig {
preserveBlank?: boolean;
}

/**
* CSS class names for elements created by the plugin
*/
export interface ParagraphToolCSS {
/**
* Block CSS class name
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineConfig({
build: {
lib: {
entry: path.resolve(__dirname, 'src', 'index.ts'),
name: 'paragraph',
name: 'Paragraph',
formats: ['umd', 'es'],
fileName: 'paragraph',
},
Expand Down

0 comments on commit d3f4b7d

Please sign in to comment.