From 1eda62242922b3b7eabcb80bace4f345627fc801 Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Thu, 16 May 2024 10:25:06 -0400 Subject: [PATCH] fix: types --- src/ui/createSystem.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/ui/createSystem.tsx b/src/ui/createSystem.tsx index 5d89956a..b584b28f 100644 --- a/src/ui/createSystem.tsx +++ b/src/ui/createSystem.tsx @@ -1,4 +1,4 @@ -import type { Assign, Pretty } from '../types/utils.js' +import type { Assign } from '../types/utils.js' import { Box } from './Box.js' import { Column, Columns } from './Columns.js' import { Divider } from './Divider.js' @@ -32,17 +32,10 @@ import { type DefaultVars, type Vars, defaultVars } from './vars.js' * }) * ``` */ -export function createSystem( +export function createSystem( vars?: vars | undefined, ) { - type Icons = unknown extends vars['icons'] - ? DefaultVars['icons'] - : vars['icons'] - type MergedVars = Pretty< - Omit, 'icons'> & { - icons: Icons - } - > + type MergedVars = Assign const mergedVars = { ...defaultVars,