# Type alias Shared<InjectedProps, DecorationTargetProps>

Shared<InjectedProps, DecorationTargetProps>: {
[P in Extract<keyof InjectedProps, keyof DecorationTargetProps>]?: InjectedProps[P] extends DecorationTargetProps[P]
? DecorationTargetProps[P]
: never
}

a property P will be present if :

- it is present in both DecorationTargetProps and InjectedProps
- InjectedProps[P] can satisfy DecorationTargetProps[P] ie: decorated component can accept more types than decorator is injecting

For decoration, inject props or ownProps are all optionally required by the decorated (right hand side) component. But any property required by the decorated component must be satisfied by the injected property.

#### Type Parameters

- InjectedProps
- DecorationTargetProps

- Defined in common/temp/node_modules/.pnpm/react-redux@8.1.3_91ee3f21853aee6f4038f22086c31182/node_modules/react-redux/es/types.d.ts:39