From cea60dc7fa6b01f33fb9c27b768207b20f37f055 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sat, 9 Apr 2022 01:53:08 +0800 Subject: [PATCH] type: fix children type error. --- src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index fc1d68af..e64845ad 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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'; @@ -12,6 +12,7 @@ export interface IReactHotkeysProps { allowRepeat?: boolean; disabled?: boolean; splitKey?: string; + children?: React.ReactNode; } export default class ReactHotkeys extends React.Component {