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

never.ts

13 lines305 Bytes

1import type { HydrationStrategy } from './types'
2​
3const neverType = 'never'
4​
5const neverStrategy: HydrationStrategy<typeof neverType, false> = {
6 _t: neverType,
7 _d: () => true,
8}
9​
10/* @__NO_SIDE_EFFECTS__ */
11export function never(): HydrationStrategy<typeof neverType, false> {
12 return neverStrategy