Skip to content

Commit

Permalink
Why template arguments?
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jun 20, 2020
1 parent c609839 commit aa6ddc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/type/definition.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ export interface GraphQLScalarTypeConfig<TInternal, TExternal> {
* your library or project. Do not use a shortened identifier as this increases
* the risk of conflicts. We recommend you add at most one extension field,
* an object which can contain all the values you need.
*
* We've provided these template arguments because this is an open type and
* you may find them useful.
*/
export interface GraphQLObjectTypeExtensions<TSource = any, TContext = any> {
[attributeName: string]: any;
Expand Down Expand Up @@ -493,6 +496,9 @@ export interface GraphQLResolveInfo {
* your library or project. Do not use a shortened identifier as this increases
* the risk of conflicts. We recommend you add at most one extension field,
* an object which can contain all the values you need.
*
* We've provided these template arguments because this is an open type and
* you may find them useful.
*/
export interface GraphQLFieldExtensions<
TSource,
Expand Down

0 comments on commit aa6ddc6

Please sign in to comment.