Commit Graph

75 Commits

Author SHA1 Message Date
Andy
7c6c96516e
More fixes from dtslint improvements (#29765) 2018-10-15 17:35:36 -07:00
Jonathan Cardoso Machado
05c905227b allow GraphQLNonNull usage with and without new (#29492)
* allow GraphQLNonNull usage with and without new

* use GraphQLNullableType instead of T on generics of GraphQLNonNull

* fix code-style and add fixes for GraphQLList

4 spaces instead of 2
use `export` instead of `declare`

* add JCMais as definition author
2018-10-08 10:07:51 -07:00
Michał Lytek
bc09574a24 [graphql] fix GraphQL Error extensions property type 2018-09-24 12:42:38 +02:00
Firede
0f20ccb63c import LoneSchemaDefinition.d.ts
fix Error: Directory types/graphql/validation/rules has unused file LoneSchemaDefinition.d.ts
2018-09-02 20:03:03 +08:00
Firede
202ed3a96d Update to graphql v14.0.0
Update to v14.0.0 from v14.0.0-rc.2, diff: 9b7807a8ff...v14.0.0
2018-09-02 19:15:35 +08:00
Firede
9a5cf2875e Merge branch 'master' into HEAD 2018-09-02 17:26:37 +08:00
Ben Iofel
c64a754835 @types/graphql: is*Type() predicates can take null and undefined (#27785)
* @types/graphql: is*Type() predicates can take null and undefined

* add tests

* use any

* assert*Type() should take any

* add tests
2018-08-03 10:57:51 -07:00
Mohamed Hegazy
a3ab1ef816
Revert "update to graphql v14.0.0 (WIP) (#26601)" (#27027)
This reverts commit ff2bcafdd0.
2018-07-03 12:22:07 -07:00
Curtis Layne
deb7d8beaf [@types/graphql] Add generic type on ExecutionResult (#26763)
* [@types/graphql] Add generic type on ExecutionResult

Without a generic type on ExecutionResult we can't have typesafe
operations.

* Add default type to the generic so it's not a breaking change

* Don't make TData readonly
2018-07-03 10:02:54 -07:00
Zhao Lei
ff2bcafdd0 update to graphql v14.0.0 (WIP) (#26601)
GraphQL.js v14.0.0 has not been released yet, this commit is sync to 9b7807a8ff
2018-07-02 09:38:20 -07:00
Firede
0304b872a2 update to graphql v14.0.0 (WIP)
GraphQL.js v14.0.0 has not been released yet, this commit is sync to 9b7807a8ff
2018-06-16 16:34:20 +08:00
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
3ccca87866 Fixed types. 2018-03-28 17:49:44 +08:00
Firede
fe4997e85f update exports, bump version: 0.12 -> 0.13 2018-03-28 02:26:25 +08:00
Firede
a3021f8040 update graphql/validation/* -> v0.13.2.
https://github.com/graphql/graphql-js/tree/v0.13.2/src/validation
2018-03-28 02:01:32 +08:00
Firede
2a02f2f7ee update graphql/graphql -> v0.13.2.
https://github.com/graphql/graphql-js/blob/v0.13.2/src/graphql.js
2018-03-28 00:52:32 +08:00
Firede
107916a7eb update graphql/utilities/* -> v0.13.2.
https://github.com/graphql/graphql-js/tree/v0.13.2/src/utilities
2018-03-28 00:49:50 +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
e0a9929245 update graphql/subscription -> v0.13.2.
https://github.com/graphql/graphql-js/blob/v0.13.2/src/subscription/subscribe.js
2018-03-28 00:36:53 +08:00
Firede
6729aab7a6 update graphql/language/* -> v0.13.2.
https://github.com/graphql/graphql-js/tree/v0.13.2/src/language
2018-03-28 00:33:01 +08:00
Firede
323e993b8f update graphql/execution/* -> v0.13.2.
https://github.com/graphql/graphql-js/tree/v0.13.2/src/execution
2018-03-28 00:13:02 +08:00
Firede
9e573562f8 add graphql/jsutils/MaybePromise.
https://github.com/graphql/graphql-js/blob/v0.13.2/src/jsutils/MaybePromise.js
2018-03-27 23:58:24 +08:00
Firede
c4d02fc9c9 update graphql/error/* -> v0.13.2.
https://github.com/graphql/graphql-js/tree/v0.13.2/src/error
2018-03-27 23:52:58 +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
Matthew Zikherman
96e18376f4 Add options to buildClientSchema in graphql 2018-03-22 11:01:36 -04:00
Pierre-Olivier Bédard
1f14091892
Add extensions to GraphQLError
https://github.com/graphql/graphql-js/blob/master/src/error/GraphQLError.js#L89
2018-03-21 11:37:04 -04:00
Divyendu Singh
b542e6c165 conform with structure of graphql-js in graphql typings 2018-03-10 14:32:35 +05:30
Divyendu Singh
c96aea88fe make graphql typing for getDescription conform with graphql-js 2018-03-09 13:45:28 +05:30
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Daniel Rosenwasser
240fdc608d
Merge pull request #23544 from j/graphql-fix
fix(GraphQL): update parseType signature
2018-02-13 16:23:24 -08:00
Cole Turner
1b22d220c8 feat(GraphQL): add additional GraphQL ParseOptions 2018-02-12 00:30:19 -08:00
Jordan
94abbb8f33 fix(GraphQL): update parseType signature 2018-02-09 11:08:00 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Matthew Leffler
65e61a6d88 GraphQL: Add schema printer options (#23180)
* Add schema printer options

These were added with https://github.com/graphql/graphql-js/pull/927, RFC: Descriptions as strings.

* Explicitly define allowed printer options
2018-01-25 09:55:38 -08:00
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
dyst5422
1eab1479b5 [graphql]: Update to 0.12.x (#22980)
* [graphql]: Update to 0.12.x

* Changed TypeExtensionNode from TypeExtensionDefinitionNode

* Changed some commas to semicolons.
2018-01-17 09:37:03 -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
Ricardo Portugal
0e09de1997 add rportugal to "Definitions by" 2017-11-04 18:29:20 +00:00
Ricardo Portugal
c15de95e10 comment 2017-11-04 18:22:42 +00:00
Ricardo Portugal
5d0ec0027d add extensions to ExecutionResult 2017-11-04 18:13:02 +00:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Chew Yong Wee
a2834a9d05 Add subscribe field to GraphQLFieldConfig and GraphQLField interfaces (#20317) 2017-10-05 22:36:04 +09:00
Arthur Ozga
e866bb76d8 Merge pull request #19591 from APIs-guru/executeArgs
[GraphQL] Overloading of 'graphql' and 'execute' functions
2017-09-14 14:27:40 -07:00
Arthur Ozga
aa2f96b0bb Merge pull request #19535 from APIs-guru/getVisitFn
[GraphQL] Add "getVisitFn" function
2017-09-14 14:22:59 -07: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
Nathan Shively-Sanders
2bd8a81998 Merge pull request #19545 from APIs-guru/getType
[GraphQL] "getType" returns GraphQLNamedType
2017-09-09 08:27:36 -07:00
Ivan Goncharov
5899fa54c2
[GraphQL] Overloading of 'graphql' and 'execute' functions 2017-09-06 18:29:10 +03:00
Ivan Goncharov
b2c738dc64
Add astNode properties to GraphQL types 2017-09-04 22:33:22 +03:00