@maddimathon/utility-typescript
Version:
TypeScript utilities (types, functions, classes) to use in various projects.
21 lines • 487 B
TypeScript
/**
* @since 2.0.0-alpha
*
* @packageDocumentation
*/
/*!
* @maddimathon/utility-typescript@2.0.0-beta.1
* @license MIT
*/
/**
* Converts an object into a class-compatible type that requires all properties
* to be present, even if their values are undefined.
*
* @param T_Object Type or interface to convert.
*
* @since 2.0.0-alpha
*/
export type Classify<T_Object> = {
[_Key in Exclude<keyof T_Object, never>]: T_Object[_Key];
};
//# sourceMappingURL=classes.d.ts.map