# @types/mobx-apollo

> TypeScript definitions for mobx-apollo

Latest version **0.0.4** (published 2021-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/mobx-apollo
pnpm add @types/mobx-apollo
yarn add @types/mobx-apollo
bun add @types/mobx-apollo
```

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2021-07-08 |
| First published | 2017-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51479 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [graphql](https://npm.io/package/graphql.md) ^14.5.3
- [apollo-client](https://npm.io/package/apollo-client.md) ^2.0.0

## Recent versions

- 0.0.4 (latest) — 2021-07-08
- 0.0.3 (ts3.0) — 2019-08-27
- 0.0.2 (ts2.6) — 2018-10-17
- 0.0.1 (ts2.3) — 2017-11-30
- 0.0.0 — 2017-11-22

## README

# Installation
> `npm install --save @types/mobx-apollo`

# Summary
This package contains type definitions for mobx-apollo (https://github.com/sonaye/mobx-apollo#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mobx-apollo.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mobx-apollo/index.d.ts)
````ts
// Type definitions for mobx-apollo 0.0
// Project: https://github.com/sonaye/mobx-apollo#readme
// Definitions by: Paul Selden <https://github.com/pselden>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0

import {
    ApolloClient,
    ObservableQuery,
    WatchQueryOptions,
    ApolloError
} from 'apollo-client';

export interface MobxApolloQueryOptions<T> extends WatchQueryOptions {
    client: ApolloClient<any>;
    onFetch?: ((result: T) => void) | undefined;
    onError?: ((error: ApolloError) => void) | undefined;
}

export interface MobxApolloQuery<T> {
    loading: boolean;
    data?: T | undefined;
    error?: ApolloError | undefined;
    ref: ObservableQuery<T>;
}

export default function graphql<T>(
    options: MobxApolloQueryOptions<T>
): MobxApolloQuery<T>;

````

### Additional Details
 * Last updated: Thu, 08 Jul 2021 18:50:52 GMT
 * Dependencies: [@types/apollo-client](https://npmjs.com/package/@types/apollo-client)
 * Global values: none

# Credits
These definitions were written by [Paul Selden](https://github.com/pselden).

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