Skip to content

Commit 2bb441e

Browse files
authored
feat: Export prop types of component (#131)
1 parent 66cb827 commit 2bb441e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
export * from './EditorJs'
2+
13
export { default } from './EditorJs'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"main": "./dist/react-editor-js.umd.js",
1414
"module": "./dist/react-editor-js.es.js",
15-
"types": "./dist/index.d.ts",
15+
"types": "./dist/lib/index.d.ts",
1616
"scripts": {
1717
"build": "rollup --config --environment NODE_ENV:production",
1818
"build-storybook": "build-storybook",

stories/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react'
22
import { ComponentStory, ComponentMeta } from '@storybook/react'
33

4-
import ReactEditorJS from '../lib/EditorJs'
4+
import ReactEditorJS from '../lib'
55

66
import { EXAMPLE_TOOLS } from './constants'
77

0 commit comments

Comments
 (0)