Skip to content
Snippets Groups Projects
Commit b61e5c76 authored by Alexander Rose's avatar Alexander Rose
Browse files

add default to ParamDefinition.Values type

parent bdee4859
No related branches found
No related tags found
No related merge requests found
/**
* 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'] }>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment