# The Query Options API

DevFeed: [The Query Options API](<https://devfeed.tech/articles/the-query-options-api-48240.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/the-query-options-api>)

Published: 2024-01-17T00:00:00Z

Content type: tutorial

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [React](<https://devfeed.tech/topics/react.md>), [abstraction](<https://devfeed.tech/topics/abstraction.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [React Router](<https://devfeed.tech/topics/react-router.md>)

Tags: [abstraction](<https://devfeed.tech/tags/abstraction.md>), [api](<https://devfeed.tech/tags/api.md>), [functions](<https://devfeed.tech/tags/functions.md>), [interface](<https://devfeed.tech/tags/interface.md>), [object](<https://devfeed.tech/tags/object.md>), [react](<https://devfeed.tech/tags/react.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [v5](<https://devfeed.tech/tags/v5.md>)

## AI overview

This article explains React Query v5's Query Options API, which replaces multiple function arguments with a single options object. It discusses how this simplifies the API, supports sharing query definitions across functions, and interacts with TypeScript's excess-property checks.

## Source excerpt

v5 brought a new, powerful API, especially if you're using React Query with TypeScript...