Closed
Description
Describe the bug
when i use act with typescript , got warning like 👇
Steps to Reproduce
@testing-library/react-native/build/act.d.ts
declare global {
var IS_REACT_ACT_ENVIRONMENT: boolean | undefined;
}
declare function setIsReactActEnvironment(isReactActEnvironment: boolean | undefined): void;
declare function getIsReactActEnvironment(): boolean | undefined;
- declare const act: (callback: () => void) => void;
+ declare const act: <T>(callback: () => T) => T;
export default act;
export { setIsReactActEnvironment as setReactActEnvironment, getIsReactActEnvironment, };
Versions
Metadata
Metadata
Assignees
Labels
No labels