Fix typos in typescript.md (#2339)

Fix some minor typos.
This commit is contained in:
hatef
2022-01-02 19:03:27 +01:00
committed by GitHub
parent 4c94605071
commit ba3ea081cb

View File

@@ -5,9 +5,9 @@ tableOfContents: true
# Working with TypeScript # Working with TypeScript
## Introduction ## Introduction
The whole Tiptap is code base is written in TypeScript. If you havent heard of it or never used it, no worries. You dont have to. The whole Tiptap codebase is written in TypeScript. If you havent heard of it or never used it, no worries. You dont have to.
TypeScript extends JavaScript by adding types (hence the name). It adds new syntax, which doesnt exist in Vanilla JavaScript. Its actually removed before running in the browser, but this step the compilation is important to find bugs early. It checks if you pass the right types of data to functions. For a big and complex project, thats very valuable. It means well get notified of lot of bugs, before shipping code to you. TypeScript extends JavaScript by adding types (hence the name). It adds new syntax, which doesnt exist in Vanilla JavaScript. Its actually removed before running in the browser, but this step the compilation is important to find bugs early. It checks if you pass the right types of data to functions. For a big and complex project, thats very valuable. It means well get notified of lots of bugs, before shipping code to you.
**Anyway, if you dont use TypeScript in your project, thats fine.** You will still be able to use Tiptap and nevertheless get a nice autocomplete for the Tiptap API (if your editor supports it, but most do). **Anyway, if you dont use TypeScript in your project, thats fine.** You will still be able to use Tiptap and nevertheless get a nice autocomplete for the Tiptap API (if your editor supports it, but most do).