mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
10 lines
330 B
TypeScript
10 lines
330 B
TypeScript
export type GetFieldsFromList<Q extends Record<string, any>> =
|
|
Q[keyof Q]["nodes"][0];
|
|
|
|
export type GetFields<Q extends Record<string, any>> = Q[keyof Q];
|
|
|
|
export type GetVariables<Q extends Record<"input", any>> =
|
|
Q["input"]["update"] extends object
|
|
? Q["input"]["update"]
|
|
: Q["input"][keyof Q["input"]];
|