We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 768f6de commit 8ad9881Copy full SHA for 8ad9881
site/src/contexts/auth/RequireAuth.tsx
@@ -67,7 +67,7 @@ export const RequireAuth: FC = () => {
67
};
68
69
type RequireKeys<T, R extends keyof T> = Omit<T, R> & {
70
- [K in keyof Pick<T, R>]: NonNullable<T[K]>;
+ [K in keyof Pick<T, R>]-?: NonNullable<T[K]>;
71
72
73
// We can do some TS magic here but I would rather to be explicit on what
0 commit comments