Commit Graph

22 Commits

Author SHA1 Message Date
Brad Zacher
7aa84a6417 [@types/graphql] Switch void for more correct undefined | null typing (#25639)
* [@types/graphql] Switch void for more correct `undefined | null` typing

* Moved Maybe.d.ts to a better place

* Moved and fixed up Maybe imports
2018-05-10 12:58:19 -07:00
Firede
fe4997e85f update exports, bump version: 0.12 -> 0.13 2018-03-28 02:26:25 +08:00
Firede
b1a1e3f9f1 update graphql/type/* -> v0.13.2.
https://github.com/graphql/graphql-js/tree/v0.13.2/src/type
2018-03-28 00:39:46 +08:00
Firede
3327220ff8 Reformat all files using prettier.
prettier --parser typescript --tab-width 4 --semi --trailing-comma es5 \
         --write --print-width 120 \
         types/graphql/**/*.d.ts
related: #23142 #24532
2018-03-27 19:48:25 +08:00
Divyendu Singh
b542e6c165 conform with structure of graphql-js in graphql typings 2018-03-10 14:32:35 +05:30
Ivan Goncharov
ca9d8d7e0f [graphql] Reformat all files using prettier. (#23142)
See https://github.com/graphql/graphql-js/pull/1112
2018-01-24 09:00:08 -08:00
Alessio Dionisi
f65c838f12 Fix compilation error (#23010) 2018-01-18 12:41:05 -08:00
Tim Griesser
e429830e19 [graphql] allow specifying Args on GraphQLFieldResolver (#22789) 2018-01-10 14:13:06 -08:00
Orta
71c545cfd5
Update definition.d.ts 2017-11-27 16:10:30 -05:00
Chew Yong Wee
a2834a9d05 Add subscribe field to GraphQLFieldConfig and GraphQLField interfaces (#20317) 2017-10-05 22:36:04 +09:00
Nathan Shively-Sanders
1f65236b53 Merge pull request #19547 from APIs-guru/astNode
[GraphQL] Add astNode properties to GraphQL types
2017-09-10 17:15:55 -07:00
Ivan Goncharov
b2c738dc64
Add astNode properties to GraphQL types 2017-09-04 22:33:22 +03:00
Ivan Goncharov
b105099a98
"getType" returns GraphQLNamedType 2017-09-04 01:16:10 +03:00
Andy
0473fda9c6 graphql: Lint (#18257) 2017-07-24 10:29:25 -07:00
Jack Moore
47dc2f3fb5 Added isDeprecated to GraphQLEnumValue 2017-06-30 00:49:17 -05:00
Jan Melcher
a84aa3a591 Also include null 2017-06-21 10:47:33 +02:00
Jan Melcher
f78ae917ae get[Mutation|Subscription]Type() are nullable
According to [`schema.js`](https://github.com/graphql/graphql-js/blob/master/src/type/schema.js#L160), `GraphQLSchema.getMutationType()` and `getSubscriptionType()` may return `undefined`, so the types should reflect that.
2017-06-21 10:42:38 +02:00
Michael
d8b7da2042 Fix for getTypeMap() return type in graphql schema.d.ts. (#16343) 2017-05-05 16:20:09 -07:00
Firede
57caf93211 fixed lint errors. 2017-03-27 19:37:17 +08:00
Firede
a1b59d6a0f add TypeInfo.getEnumValue and EnumType.getValue 2017-03-27 19:08:48 +08:00
Firede
6843699843 add isNamedType & assertNamedType.
promisify isTypeOf and resolveType.
2017-03-27 19:00:26 +08:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00