diff --git a/flow-typed/core.js b/flow-typed/core.js index 67f9680f09..a321a64c56 100644 --- a/flow-typed/core.js +++ b/flow-typed/core.js @@ -1277,7 +1277,7 @@ declare class String { * @param callSite A well-formed template string call site representation. * @param substitutions A set of substitution values. */ - static raw(callSite: $Shape<{ raw: string, ... }>, ...substitutions: any[]): string; + static raw(callSite: string[], ...substitutions: any[]): string; // graphql-js HACK } declare class RegExp { diff --git a/src/__testUtils__/kitchenSinkQuery.js b/src/__testUtils__/kitchenSinkQuery.js index 8d176686ea..ba23543a18 100644 --- a/src/__testUtils__/kitchenSinkQuery.js +++ b/src/__testUtils__/kitchenSinkQuery.js @@ -1,4 +1,3 @@ -// $FlowFixMe[incompatible-call] export const kitchenSinkQuery: string = String.raw` query queryName($foo: ComplexType, $site: Site = MOBILE) @onQuery { whoever123is: node(id: [123, 456]) { diff --git a/src/language/__tests__/printer-test.js b/src/language/__tests__/printer-test.js index ff5a3b2669..fefbdec157 100644 --- a/src/language/__tests__/printer-test.js +++ b/src/language/__tests__/printer-test.js @@ -149,7 +149,6 @@ describe('Printer: Query document', () => { expect(JSON.stringify(ast)).to.equal(astBeforePrintCall); expect(printed).to.equal( - // $FlowFixMe[incompatible-call] dedentString(String.raw` query queryName($foo: ComplexType, $site: Site = MOBILE) @onQuery { whoever123is: node(id: [123, 456]) { diff --git a/src/utilities/__tests__/printSchema-test.js b/src/utilities/__tests__/printSchema-test.js index c7971ab126..f108094616 100644 --- a/src/utilities/__tests__/printSchema-test.js +++ b/src/utilities/__tests__/printSchema-test.js @@ -157,7 +157,6 @@ describe('Type System Printer', () => { }); expectPrintedSchema(schema).to.equal( - // $FlowFixMe[incompatible-call] dedentString(String.raw` type Query { singleField(argOne: String = "tes\t de\fault"): String