# @types/graphql-api-koa

> TypeScript definitions for graphql-api-koa

Latest version **2.0.8** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/graphql-api-koa
pnpm add @types/graphql-api-koa
yarn add @types/graphql-api-koa
bun add @types/graphql-api-koa
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.8 |
| Published | 2023-11-07 |
| First published | 2019-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51371 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/graphql-api-koa
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graphql-api-koa
- npm.io page: https://npm.io/package/@types/graphql-api-koa

## Dependencies (2)

- [graphql](https://npm.io/package/graphql.md) ^14.5.3
- [@types/koa](https://npm.io/package/@types/koa.md) *

## Recent versions

- 2.0.8 (latest) — 2023-11-07
- 2.0.4 (ts3.7) — 2021-08-27
- 2.0.3 (ts3.6) — 2021-07-08
- 2.0.2 (ts3.3) — 2019-08-26
- 2.0.7 — 2023-10-18
- 2.0.6 — 2023-10-10
- 2.0.5 — 2023-09-20
- 2.0.1 — 2019-08-23
- 2.0.0 — 2019-04-03

## README

# Installation
> `npm install --save @types/graphql-api-koa`

# Summary
This package contains type definitions for graphql-api-koa (https://github.com/jaydenseric/graphql-api-koa#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graphql-api-koa.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graphql-api-koa/index.d.ts)
````ts
import { GraphQLSchema } from "graphql";
import { DefaultContext, DefaultState, Middleware, ParameterizedContext } from "koa";

export interface ExecuteOptions {
    schema?: GraphQLSchema | undefined;
    rootValue?: any;
    contextValue?: any;
    fieldResolver?: any;
}

export function errorHandler(): Middleware;

export function execute<StateT = DefaultState, ContextT = DefaultContext>(
    options: ExecuteOptions & {
        override?: ((ctx: ParameterizedContext<StateT, ContextT>) => ExecuteOptions) | undefined;
    },
): Middleware<StateT, ContextT>;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/koa](https://npmjs.com/package/@types/koa), [graphql](https://npmjs.com/package/graphql)

# Credits
These definitions were written by [Mike Marcacci](https://github.com/mike-marcacci).

---
_Source: https://npm.io/package/@types/graphql-api-koa · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
