Skip to content

Commit d6f174e

Browse files
authored
Add overloaded type for CodePush function that accepts a React Component (microsoft#1801)
1 parent 0988fb5 commit d6f174e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

typings/react-native-code-push.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ export interface StatusReport {
239239
*/
240240
declare function CodePush(options?: CodePushOptions): (x: any) => any;
241241

242+
/**
243+
* Decorates a React Component configuring it to sync for updates with the CodePush server.
244+
*
245+
* @param x the React Component that will decorated
246+
*/
247+
declare function CodePush(x: any): any
248+
242249
declare namespace CodePush {
243250
/**
244251
* Represents the default settings that will be used by the sync method if

0 commit comments

Comments
 (0)