rambda
Version:
Lightweight faster alternative to Ramda
14 lines (12 loc) • 325 B
text/typescript
import {OptionalKeys as OOptionalKeys} from '../Object/OptionalKeys'
import {ObjectOf} from './ObjectOf'
import {Tuple} from './Tuple'
/** Get the keys of **`T`** that are optional
* @param T
* @returns **`keyof`**
* @example
* ```ts
* ```
*/
export type OptionalKeys<T extends Tuple> =
OOptionalKeys<ObjectOf<T>>