Skip to content

Commit

Permalink
fix: PropsWithChildren
Browse files Browse the repository at this point in the history
  • Loading branch information
linjinze999 committed Aug 28, 2024
1 parent 25a4e04 commit ca6cc7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hippy_ui_react/src/provider/Provider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, isValidElement, cloneElement } from 'react';
import React, { Component, isValidElement, cloneElement, PropsWithChildren } from 'react';
import { View } from '@hippy/react';
import {
getProviderValue,
Expand All @@ -16,7 +16,7 @@ import { ConfigCommon, setConfigCommon } from './ConfigCommon';
/**
* @visibleName Provider 全局模式
*/
export default class Provider extends Component<ProviderProps, ProviderState> {
export default class Provider extends Component<PropsWithChildren<ProviderProps>, ProviderState> {
state: ProviderState = {
globalViews: {},
};
Expand Down

0 comments on commit ca6cc7e

Please sign in to comment.