Display a message when there are no results

This commit is contained in:
Timothy Armes
2024-09-27 10:55:02 +02:00
parent 93e3e1242a
commit f8cd2612b5
8 changed files with 92 additions and 11 deletions
+6
View File
@@ -93,5 +93,11 @@ export type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
export type Path<T, K extends keyof T = keyof T> = K extends string
? T[K] extends Record<string, unknown>
? `${K}.${Path<T[K], keyof T[K]>}`
: K
: never;
export type ExtractSafeActionResult<T> =
T extends SafeAction<infer Schema, infer Result> ? Result : never;