Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

noop.md

54 lines878 Bytes

1---
2id: noop
3title: noop
4---
5​
6## Overview
7​
8```ts
9function noop(): void;
10function noop(): undefined;
11```
12​
13- [`void`](#call-signature-1): A function that does nothing.
14- [`undefined`](#call-signature-2): A function that does nothing.
15​
16See also: [Returns](#returns-summary)
17​
18<a id="call-signature-1"></a>
19​
20## Call Signature
21​
22```ts
23function noop(): void;
24```
25​
26Defined in: [packages/query-core/src/utils.ts:121](https://github.com/TanStack/query/blob/main/packages/query-core/src/utils.ts#L121)
27​
28A function that does nothing.
29​
30### Returns
31​
32`void`
33​
34<a id="call-signature-2"></a>
35​
36## Call Signature
37​
38```ts
39function noop(): undefined;
40```
41​
42Defined in: [packages/query-core/src/utils.ts:122](https://github.com/TanStack/query/blob/main/packages/query-core/src/utils.ts#L122)
43​
44A function that does nothing.
45​
46### Returns
47​
48`undefined`
49​
50<a id="returns-summary"></a>
51​
52## Returns
53​
54`undefined`