Skip to content

Commit

Permalink
chore: make TS happy
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Feb 7, 2018
1 parent 7ed5bc1 commit b95f665
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/StickySidebar/ChevronSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export const AnimatedChevronButton = ({ open }: { open: boolean }) => {
};

// adapted from reactjs.org
const ChevronSvg = ({ size = 10, className = '', style = {} }) => (
const ChevronSvg = ({ size = 10, className = '', style }) => (
<svg
className={className}
style={style}
style={style || {}}
viewBox="0 0 926.23699 573.74994"
version="1.1"
x="0px"
Expand Down
2 changes: 1 addition & 1 deletion src/services/ScrollService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { bind } from 'decko';
import { EventEmitter } from 'eventemitter3';
import * as EventEmitter from 'eventemitter3';

import { isBrowser, querySelector, Throttle } from '../utils';
import { RedocNormalizedOptions } from './RedocNormalizedOptions';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function flattenByProp<T extends object, P extends keyof T>(
for (const item of items) {
res.push(item);
if (item[prop]) {
iterate(item[prop]);
iterate((item[prop] as any) as T[]);
}
}
};
Expand Down

0 comments on commit b95f665

Please sign in to comment.