Skip to content

Commit

Permalink
fix: remove ts-ignores from TS example
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Oct 24, 2022
1 parent 5a47f2b commit ec53d91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions examples/typescript/src/Repo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ const query = gql`
// and inject the data into the component. The Result type is what
// we expect the shape of the response to be and OwnProps is what we
// expect to be passed to this component.
const Repo = graphql<Result, OwnProps>(query, {
// @ts-ignore
const Repo = graphql<OwnProps>(query, {
options: ({ name }) => ({ variables: { name } }),
// @ts-ignore
})(RepoBase);

export { Repo };
2 changes: 1 addition & 1 deletion examples/typescript/src/RepoSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RepoSearch extends React.Component<{}, State> {
<option value="react-apollo">React Apollo</option>
<option value="apollo-client">Apollo Client</option>
</select>
{/* @ts-ignore */}

<Repo name={this.state.repo} />
</div>
);
Expand Down

0 comments on commit ec53d91

Please sign in to comment.