@novorender/web_app / AtLeastOne
Type Alias: AtLeastOne<T, U>
type AtLeastOne<T, U>: Partial<T> & U[keyof U];
Helper type, like typescript's Partial<T>
, but where at least one property must be defined.
Type Parameters
Type Parameter | Default type |
---|---|
T | - |
U | { [K in keyof T]: Pick<T, K> } |