From e6eda36abed933bcafa0286c67a46fb308cf901d Mon Sep 17 00:00:00 2001 From: honzapatCZ Date: Mon, 23 Jun 2025 10:38:10 +0200 Subject: [PATCH] add some helper ts --- common.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 common.ts diff --git a/common.ts b/common.ts new file mode 100644 index 0000000..afc7277 --- /dev/null +++ b/common.ts @@ -0,0 +1,8 @@ +export type Pretty = { + [K in keyof T]: T[K]; +}; +export type Expand = T extends object + ? T extends infer O + ? { [K in keyof O]: Expand } + : never + : T \ No newline at end of file