Fix typing of graphQLQuery
Summary: This was being interpreted as returning `void` which was causing problems when trying to access the resolved value from the request. Fixing to slightly better type of `Promise<any>` Reviewed By: passy Differential Revision: D21105552 fbshipit-source-id: 76deb5a83b5220bafed8c12c3f56f339a5215c14
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9cbd7cbbdd
commit
c0c96dcd3e
@@ -22,7 +22,7 @@ export async function internGraphPOSTAPIRequest(
|
||||
throw new Error('Feature not implemented');
|
||||
}
|
||||
|
||||
export async function graphQLQuery(_query: string) {
|
||||
export async function graphQLQuery(_query: string): Promise<any> {
|
||||
throw new Error('Feature not implemented');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user