From 40b6038380392e5aa6c67160e2de5165e7865898 Mon Sep 17 00:00:00 2001 From: Alexander Rose Date: Sat, 9 May 2026 15:43:04 -0700 Subject: [PATCH] type tweak --- src/mol-util/param-definition.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mol-util/param-definition.ts b/src/mol-util/param-definition.ts index 63c939d95..2447bddae 100644 --- a/src/mol-util/param-definition.ts +++ b/src/mol-util/param-definition.ts @@ -296,9 +296,9 @@ export namespace ParamDefinition { element: Params, ctor(): T, getLabel(t: T): string, - presets?: Select['options'] + presets?: SelectOption } - export function ObjectList(element: For, getLabel: (e: T) => string, info?: Info & { defaultValue?: T[], ctor?: () => T, presets?: Select['options'] }): ObjectList> { + export function ObjectList(element: For, getLabel: (e: T) => string, info?: Info & { defaultValue?: T[], ctor?: () => T, presets?: SelectOption }): ObjectList> { const ret = setInfo>>({ type: 'object-list', element: element as any as Params, getLabel, ctor: _defaultObjectListCtor, defaultValue: (info?.defaultValue) || [] }, info); if (info?.presets) ret.presets = info.presets as any; return ret;