-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5140 from dandean/ts-migration/core-events
Migrate @storybook/core-events to TypeScript
- Loading branch information
Showing
5 changed files
with
2,979 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
enum events { | ||
CHANNEL_CREATED = 'channelCreated', | ||
GET_CURRENT_STORY = 'getCurrentStory', | ||
SET_CURRENT_STORY = 'setCurrentStory', | ||
GET_STORIES = 'getStories', | ||
SET_STORIES = 'setStories', | ||
SELECT_STORY = 'selectStory', | ||
APPLY_SHORTCUT = 'applyShortcut', | ||
STORY_ADDED = 'storyAdded', | ||
FORCE_RE_RENDER = 'forceReRender', | ||
REGISTER_SUBSCRIPTION = 'registerSubscription', | ||
STORY_RENDERED = 'storyRendered', | ||
STORY_ERRORED = 'storyErrored', | ||
STORY_THREW_EXCEPTION = 'storyThrewException', | ||
} | ||
|
||
export default events; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "./src" | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": [] | ||
} |
Oops, something went wrong.