Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 501 Bytes

File metadata and controls

25 lines (18 loc) · 501 Bytes

locate/fieldArgument.invalid.ts

Input

// Locate: Query.greeting(salutation:)
/** @gqlType */
type Query = unknown;

/** @gqlQueryField */
export function greeting(salutation: string): string {
  return `${salutation}, world!`;
}

Output

Error Report

src/tests/fixtures/locate/fieldArgument.invalid.ts:6:26 - error: Located here

6 export function greeting(salutation: string): string {
                           ~~~~~~~~~~