editor-js / paragraph

Paragraph Tool for Editor.js 2.0
MIT License
41 stars 124 forks source link

Add TypeScript support, config and update dependencies #88

Closed yuan-93 closed 3 months ago

yuan-93 commented 3 months ago

Resolve #82 Migrate to Typescript

Changes:

  1. Add Typescript
  2. Add type dependencies @editorjs/editorjs
  3. Add tsconfig.json
  4. Convert Js files to Ts files
  5. Add .d.ts for @codexteam/icons
  6. Add vite-plugin-dts to generate types during build
yuan-93 commented 3 months ago

Sure, thanks for reviewing, I have amended the codes following your comments

Changes:

  1. Add single quote config to .editorconfig, update double quote to single quote
  2. Add and update all function return types
  3. Update unexpected line break
  4. Add jsdocs to all interfaces and properties
  5. Increment patch version
yuan-93 commented 3 months ago

Changes

  1. Export ParagraphConfig and ParagraphData interfaces
  2. npm run build to update /dist folder
neSpecc commented 3 months ago

Thanks, @yuan-93l, great work. If you have time, you can help us migrate other tools to TypeScript. Let me know if you're interested.

yuan-93 commented 3 months ago

@neSpecc Thanks ! Yea sure, I can help out 😄

neSpecc commented 3 months ago

@neSpecc Thanks ! Yea sure, I can help out 😄

How about Nested List?

yuan-93 commented 3 months ago

Alright, let me check it out, can you open a migration to typescript issue for Nested List ? i cant find one