Skip to content

Commit 78ab5a3

Browse files
committed
Run yarn format to format all files
1 parent 6147d34 commit 78ab5a3

File tree

15 files changed

+1561
-1509
lines changed

15 files changed

+1561
-1509
lines changed

docs/api/createListenerMiddleware.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ To fix this, the middleware provides types for defining "pre-typed" versions of
488488
import { createListenerMiddleware, addListener } from '@reduxjs/toolkit'
489489
import type { RootState, AppDispatch } from './store'
490490

491-
declare type ExtraArgument = {foo: string};
491+
declare type ExtraArgument = { foo: string }
492492

493493
export const listenerMiddleware = createListenerMiddleware()
494494

docs/rtk-query/usage-with-typescript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ function PostDetail() {
613613
<div>{errMsg}</div>
614614
</div>
615615
)
616-
}
616+
}
617617
// you can access all properties of `SerializedError` here
618618
return <div>{error.message}</div>
619619
}

errors.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@
3939
"37": "Warning: Middleware for RTK-Query API at reducerPath \"\" has not been added to the store.\n You must add the middleware for RTK-Query to function correctly!",
4040
"38": "Cannot refetch a query that has not been started yet.",
4141
"39": "called \\`injectEndpoints\\` to override already-existing endpointName without specifying \\`overrideExisting: true\\`"
42-
}
42+
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { PostsManager } from './features/posts/PostsManager'
22

33
function App() {
4-
return (
5-
<PostsManager />
6-
)
4+
return <PostsManager />
75
}
86

97
export default App

examples/query/react/pagination/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ worker.start({ quiet: true }).then(() =>
1313
<React.StrictMode>
1414
<ApiProvider api={api}>
1515
<ChakraProvider>
16-
<App />
16+
<App />
1717
</ChakraProvider>
1818
</ApiProvider>
1919
</React.StrictMode>,

examples/type-portability/bundler/src/features/time/TimeList.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@ export const intervalOptions = [
7878
{ label: '1m', value: 60_000 },
7979
]
8080

81-
export const TimeDisplay = ({ offset, label }: { offset: string; label: string }) => {
81+
export const TimeDisplay = ({
82+
offset,
83+
label,
84+
}: {
85+
offset: string
86+
label: string
87+
}) => {
8288
const globalPolling = useAppSelector(selectGlobalPollingEnabled)
8389
const { enabled: timesPolling } = useAppSelector((state) =>
8490
selectPollingConfigByApp(state, 'times'),

examples/type-portability/nodenext-esm/src/features/time/TimeList.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@ export const intervalOptions = [
7878
{ label: '1m', value: 60_000 },
7979
]
8080

81-
export const TimeDisplay = ({ offset, label }: { offset: string; label: string }) => {
81+
export const TimeDisplay = ({
82+
offset,
83+
label,
84+
}: {
85+
offset: string
86+
label: string
87+
}) => {
8288
const globalPolling = useAppSelector(selectGlobalPollingEnabled)
8389
const { enabled: timesPolling } = useAppSelector((state) =>
8490
selectPollingConfigByApp(state, 'times'),

0 commit comments

Comments
 (0)