ExtractedProps

Type alias
ExtractedProps<T, ToExtractKeys>: Partial<Pick<T, ToExtractKeys[number]>> & Pick<T, Extract<ToExtractKeys[number], RequiredKeys<T>>>

The union of optional and required keys specified in extractKeys in ProcessOptionsConfig. This type is used to ensure a strict and dynamically-typed result of processOptions() that correctly preserves the original optional/required status of the extracted keys on the original interface before and after the processed result. This type is constructed by assigning all extracted properties of T as optional and overwriting the required ones as required.

Type Parameters

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.