Skip to content

Commit

Permalink
type: fix children type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 8, 2022
1 parent 2670a6e commit cea60dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { Fragment } from 'react';
import * as PropTypes from 'prop-types';
import Hotkeys, { HotkeysEvent } from 'hotkeys-js';

Expand All @@ -12,6 +12,7 @@ export interface IReactHotkeysProps {
allowRepeat?: boolean;
disabled?: boolean;
splitKey?: string;
children?: React.ReactNode;
}

export default class ReactHotkeys extends React.Component<IReactHotkeysProps> {
Expand Down

0 comments on commit cea60dc

Please sign in to comment.