diff --git a/src/mol-util/param-definition.ts b/src/mol-util/param-definition.ts index f5d2eb0a33e3e8131bc2f04e9e8ac1d626e2938b..89e2fff777ce4a3967b608cf0864a2963123ee18 100644 --- a/src/mol-util/param-definition.ts +++ b/src/mol-util/param-definition.ts @@ -1,5 +1,5 @@ /** - * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. + * Copyright (c) 2018-2023 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> * @author David Sehnal <david.sehnal@gmail.com> @@ -344,7 +344,7 @@ export namespace ParamDefinition { | ColorList | Group<any> | Mapped<any> | Converted<any, any> | Conditioned<any, any, any> | Script | ObjectList | ValueRef | DataRef export type Params = { [k: string]: Any } - export type Values<T extends Params> = { [k in keyof T]: T[k]['defaultValue'] } + export type Values<T extends Params = Params> = { [k in keyof T]: T[k]['defaultValue'] } /** This is required for params with optional values */ export type ValuesFor<T extends For<any>> = Normalize<{ [k in keyof T]: T[k]['defaultValue'] }>