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,