-
Notifications
You must be signed in to change notification settings - Fork 0
/
readmeTemplate.ejs
59 lines (41 loc) · 946 Bytes
/
readmeTemplate.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# <%= name %>
> <%= description %>
<!-- START doctoc -->
<!-- END doctoc -->
## Installation
### Using [npm](https://docs.npmjs.com/cli/npm)
```
$ npm install --save <%= name %>
```
### Using [yarn](https://yarnpkg.com)
```
$ yarn add <%= name %>
```
## Types
```javascript
export type {DocumentNode} from "graphql/language/ast";
type GqlErrorLocation = {|
line: number,
column: number
|};
type GqlError = {|
message: string,
locations?: Array<GqlErrorLocation>
|};
type GqlRequest<Variables: void | Object = void> = {|
operation: string,
variables?: Variables
|};
type GqlRequestCompat<Variables: void | Object = void> = {|
query: string,
variables?: Variables
|};
type GqlResponse<Data> = {|
data?: Data,
errors?: Array<GqlError>
|};
type GqlOperationType = "mutation" | "query" | "subscription";
```
## API
## License
[<%= license %>](LICENSE.txt) :copyright: 2020 **James Marca**, 2018 **Jumpn Limited**