( message: string, )
| 180 | }); |
| 181 | |
| 182 | function createGraphQLResponseError( |
| 183 | message: string, |
| 184 | ): GraphqlResponseError<unknown> { |
| 185 | return new GraphqlResponseError( |
| 186 | { |
| 187 | method: 'POST', |
| 188 | url: 'https://api.github.com/graphql', |
| 189 | headers: {}, |
| 190 | }, |
| 191 | {}, |
| 192 | { |
| 193 | data: {}, |
| 194 | errors: [{ message }] as unknown as NonNullable< |
| 195 | GraphqlResponseError<unknown>['errors'] |
| 196 | >, |
| 197 | }, |
| 198 | ); |
| 199 | } |