chore: 修复类型问题

pull/64/head
moonrailgun 3 years ago
parent 345e31553a
commit cdc43fd532

@ -70,7 +70,7 @@ export function useWhyDidYouUpdate<T>(
to: props[key], to: props[key],
changedKeys: changedKeys:
props[key] && typeof props[key] === 'object' props[key] && typeof props[key] === 'object'
? Object.keys(latestProps.current[key]) ? Object.keys(latestProps.current[key] as object)
.map((k) => .map((k) =>
_get(latestProps.current, [key, k]) === _get(latestProps.current, [key, k]) ===
_get(props, [key, k]) _get(props, [key, k])

@ -1,5 +1,5 @@
import { Icon } from 'tailchat-design'; import { Icon } from 'tailchat-design';
import { Menu, MenuProps } from 'antd'; import type { MenuProps } from 'antd';
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { import {
ChatMessage, ChatMessage,

@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import { Menu, MenuProps } from 'antd'; import type { MenuProps } from 'antd';
import _isNil from 'lodash/isNil'; import _isNil from 'lodash/isNil';
import _compact from 'lodash/compact'; import _compact from 'lodash/compact';
import { import {

Loading…
Cancel
Save