SelectableRequired

[ Type ]

type SelectableRequired<T, K extends keyof T> = { [S in K]-?: T[S] } & { [P in keyof T]: T[P] }

Changes a data type so that the specified properties of a JavaScript object are mandatory.

Sample

SelectableRequired<TcHmi.Context, 'success' | 'error'>

This specifies that the properties success and error of type TcHmi.Context are required. All other properties are not changed (and may therefore remain optional).