export const setLighting = createAction(
'[Ui] SET_BACKGROUND',
props<{
lighting: Array<{ target: LightD; value: LightE | undefined }>
}>(),
)
readonly setBackgroundLighting$ = this.stateTheme$.pipe(
pluck(LightD.LEFT,LightD.RIGHT ),
distinctUntilChanged(),
map(value =>
setLighting({
lighting:{target:LightD.LIGHT,value}
}),
),
)
export const LightD: {
readonly CLIGHT: "CLIGHT";
readonly LIGHT: "LIGHT";
readonly LEFT: "LEFT";
readonly RIGHT: "RIGHT";
Encountering error Type '{ target: "LIGHT"; value: unknown; }' cannot be assigned to type '{ target: LightD; value: LightE| undefined; }[]'. Object literal is restricted to known properties only, and 'target' does not match with 'target' in type '{ target: LightD; value: LightE | undefined; }[]'.ts(2322) The anticipated type originates from property 'lighting' that is defined here on type '{ lighting: { target: LightD; value: LightE| undefined; }[]; }'