Skip to content

Commit 2222b81

Browse files
gkzfacebook-github-bot
authored andcommitted
Codemod long deprecated * type to any (#36634)
Summary: Pull Request resolved: #36634 X-link: facebook/metro#957 The existential type `*` has been deprecated and just an alias for `any` since version 0.163. Codemod usage of it to `any`. This helps with diff D44276187, which makes it always an error to use `*`. Changelog: [internal] Reviewed By: pieterv, SamChou19815 Differential Revision: D44358809 fbshipit-source-id: c6bb55430edd086958e16989c60bc2a0a131a3fe
1 parent b384bb6 commit 2222b81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/flow/jest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ interface JestExpectType {
673673
* Use .toBeInstanceOf(Class) to check that an object is an instance of a
674674
* class.
675675
*/
676-
toBeInstanceOf(cls: Class<*>): void;
676+
toBeInstanceOf(cls: Class<any>): void;
677677
/**
678678
* .toBeNull() is the same as .toBe(null) but the error messages are a bit
679679
* nicer.

0 commit comments

Comments
 (0)