Skip to content

Commit

Permalink
FIX minor issues after client-api TS migration merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jul 6, 2019
1 parent 0083afd commit 74e48c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/client-api/src/client_api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint no-underscore-dangle: 0 */
import isPlainObject from 'is-plain-object';
import { logger } from '@storybook/client-logger';
import addons, { StoryContext, StoryFn, Parameters } from '@storybook/addons';
import addons, { StoryContext, StoryFn, Parameters, OptionsParameter } from '@storybook/addons';
import Events from '@storybook/core-events';
import { toId } from '@storybook/router/utils';

Expand Down Expand Up @@ -187,7 +187,7 @@ export default class ClientApi {
const fileName = m && m.id ? `${m.id}` : undefined;

const { hierarchyRootSeparator, hierarchySeparator } = this.getSeparators();
const baseOptions: Parameters['options'] = {
const baseOptions: OptionsParameter = {
hierarchyRootSeparator,
hierarchySeparator,
};
Expand Down
1 change: 0 additions & 1 deletion lib/client-api/src/config_api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// /<reference types="webpack-env" />
/* eslint no-underscore-dangle: 0 */

import Events from '@storybook/core-events';
Expand Down
6 changes: 3 additions & 3 deletions lib/client-api/src/story_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ export default class StoryStore extends EventEmitter {
constructor(params: { channel: Channel }) {
super();

this._legacydata = ({} as any) as LegacyData;
this._data = ({} as any) as StoreData;
this._legacydata = {} as any;
this._data = {} as any;
this._revision = 0;
this._selection = ({} as any) as Selection;
this._selection = {} as any;
this._channel = params.channel;
this._error = undefined;
}
Expand Down

1 comment on commit 74e48c5

@vercel
Copy link

@vercel vercel bot commented on 74e48c5 Jul 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.