refactor: recreate extension exports
This commit is contained in:
@@ -5,7 +5,7 @@ type FontFamilyOptions = {
|
||||
types: string[],
|
||||
}
|
||||
|
||||
const FontFamily = Extension.create({
|
||||
export const FontFamily = Extension.create({
|
||||
name: 'fontFamily',
|
||||
|
||||
defaultOptions: <FontFamilyOptions>{
|
||||
@@ -60,8 +60,6 @@ const FontFamily = Extension.create({
|
||||
},
|
||||
})
|
||||
|
||||
export default FontFamily
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
FontFamily: typeof FontFamily,
|
||||
|
||||
5
packages/extension-font-family/src/index.ts
Normal file
5
packages/extension-font-family/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { FontFamily } from './font-family'
|
||||
|
||||
export * from './font-family'
|
||||
|
||||
export default FontFamily
|
||||
Reference in New Issue
Block a user