From cb44cf0221aef0fef8fb4bd166f2d788df056fa4 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Mon, 25 Feb 2019 21:16:38 -0500 Subject: [PATCH] fix: Fix typing (#22) --- package.json | 2 +- src/AuthorizedSocketConnection.js | 2 +- yarn.lock | 12 +++++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index b942d679..5fa8842f 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "eslint-plugin-prettier": "^2.6.0", "eslint-plugin-react": "^7.8.2", "flow-bin": "^0.72.0", - "graphql": "^0.13.2", + "graphql": "^14.1.1", "husky": "^0.14.3", "jest": "^22.4.4", "lint-staged": "^7.1.2", diff --git a/src/AuthorizedSocketConnection.js b/src/AuthorizedSocketConnection.js index 70080417..3f551e7d 100644 --- a/src/AuthorizedSocketConnection.js +++ b/src/AuthorizedSocketConnection.js @@ -20,7 +20,7 @@ import SubscriptionContext from './SubscriptionContext'; export type CreateValidationRules = ({ variables: Object, query: string, -}) => $ReadOnlyArray any>>; +}) => $ReadOnlyArray<(context: ValidationContext) => any>; type Subscription = { id: string, diff --git a/yarn.lock b/yarn.lock index e26dd5f9..76473619 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2976,11 +2976,12 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" -graphql@^0.13.2: - version "0.13.2" - resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.13.2.tgz#4c740ae3c222823e7004096f832e7b93b2108270" +graphql@^14.1.1: + version "14.1.1" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.1.1.tgz#d5d77df4b19ef41538d7215d1e7a28834619fac0" + integrity sha512-C5zDzLqvfPAgTtP8AUPIt9keDabrdRAqSWjj2OPRKrKxI9Fb65I36s1uCs1UUBFnSWTdO7hyHi7z1ZbwKMKF6Q== dependencies: - iterall "^1.2.1" + iterall "^1.2.2" growly@^1.3.0: version "1.3.0" @@ -3624,9 +3625,10 @@ istanbul-reports@^1.3.0: dependencies: handlebars "^4.0.3" -iterall@^1.2.1: +iterall@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.2.2.tgz#92d70deb8028e0c39ff3164fdbf4d8b088130cd7" + integrity sha512-yynBb1g+RFUPY64fTrFv7nsjRrENBQJaX2UL+2Szc9REFrSNm1rpSXHGzhmAy7a9uv3vlvgBlXnf9RqmPH1/DA== java-properties@^0.2.9: version "0.2.10"