diff --git a/packages/type-helper/src/main.ts b/packages/type-helper/src/main.ts index d2d39e0e..f714210f 100644 --- a/packages/type-helper/src/main.ts +++ b/packages/type-helper/src/main.ts @@ -179,6 +179,13 @@ export type ArrayItems = T extends (infer K)[] ? K : T; */ export type Merge = Omit & N; +/** + * Make all properties in T required and exclude undefined and null from the property type. + */ +export type StrictlyRequired = { + [P in keyof T]-?: NonNullable; +}; + /** * Represents an object that has the ability to add event listeners. */