Spaces:
Paused
Paused
Download node_modules/@reduxjs/toolkit/src/uncheckedindexed.ts from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40reduxjs/toolkit/src/uncheckedindexed.ts
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@reduxjs/toolkit/src/uncheckedindexed.ts
-
curl -L -o uncheckedindexed.ts https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40reduxjs/toolkit/src/uncheckedindexed.ts
440 Bytes
| // inlined from https://github.com/EskiMojo14/uncheckedindexed | |
| // relies on remaining as a TS file, not .d.ts | |
| type IfMaybeUndefined<T, True, False> = [undefined] extends [T] ? True : False | |
| const testAccess = ({} as Record<string, 0>)['a'] | |
| export type IfUncheckedIndexedAccess<True, False> = IfMaybeUndefined< | |
| typeof testAccess, | |
| True, | |
| False | |
| > | |
| export type UncheckedIndexedAccess<T> = IfUncheckedIndexedAccess< | |
| T | undefined, | |
| T | |
| > | |