## Describe the bug when i use act with typescript , got warning like 👇 <img width="611" alt="image" src="https://user-images.githubusercontent.com/33139713/211142113-f8a5c3b1-4bec-4cbe-b603-6011b490383c.png"> <img width="549" alt="image" src="https://user-images.githubusercontent.com/33139713/211142103-e119d109-809e-4a94-8222-749d5b677d16.png"> ## Steps to Reproduce `@testing-library/react-native/build/act.d.ts` ```diff 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 <img width="388" alt="image" src="https://user-images.githubusercontent.com/33139713/211142204-6295ea0a-f5c5-4c36-89bc-52fe985830ad.png">