add prism-typescript

This commit is contained in:
Philipp Kühn
2020-11-18 14:37:35 +01:00
parent fade8f798d
commit b3798b7329
2 changed files with 3 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ If youre using TypeScript in your project and want to extend tiptap, there ar
## Options type
To extend or create default options for an extension, youll need to define a custom type, here is an example:
```js
```ts
import { Extension } from '@tiptap/core'
export interface CustomExtensionOptions {
@@ -31,7 +31,7 @@ const CustomExtension = Extension.create({
## Command type
The core package also exports a `Command` type, which needs to be added to all commands that you specify in your code. Here is an example:
```js
```ts
import { Command, Extension } from '@tiptap/core'
const CustomExtension = Extension.create({

View File

@@ -1,6 +1,7 @@
// eslint-disable-next-line
import Prism from 'prismjs'
import 'prismjs/components/prism-jsx.js'
import 'prismjs/components/prism-typescript.js'
import 'prismjs/components/prism-scss.js'
import PortalVue from 'portal-vue'
import App from '~/layouts/App'