Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit e43dd29

Browse files
committed
Adding bindings to storybook
1 parent 2e18155 commit e43dd29

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/bindings/Storybook.bs.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bindings/Storybook.res

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
type section
2+
3+
type storybookModule
4+
5+
type chapter = unit => React.element
6+
7+
type decorator = chapter => React.element
8+
9+
@val @module("@storybook/react")
10+
external storiesOf: (string, storybookModule) => section = "storiesOf"
11+
12+
@send external add: (section, string, chapter) => section = "add"
13+
14+
@send external addDecorator: (section, decorator) => section = "addDecorator"

0 commit comments

Comments
 (0)