Skip to content

Commit

Permalink
fix: revision typings are using proper maybe checks (wpengine#452)
Browse files Browse the repository at this point in the history
* fix: revision typings are using proper maybe checks

* fix: lint
  • Loading branch information
wjohnsto authored Sep 13, 2021
1 parent 7218f26 commit 0adaed3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/react/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
CategoryIdType,
ClientConfig,
getClient as getCoreClient,
Maybe,
PageIdType,
PostIdType,
} from '@faustjs/core';
Expand All @@ -19,9 +20,13 @@ export interface Node {
}

export interface WithRevisions {
revisions: (arg0: { first: number }) => {
edges?: { node?: Node }[];
};
revisions: (arg0: { first?: number }) => Maybe<{
edges?: Maybe<
Maybe<{
node?: Maybe<Node>;
}>[]
>;
}>;
}

export interface RequiredQuery {
Expand Down

0 comments on commit 0adaed3

Please sign in to comment.