Skip to content

Commit

Permalink
Allow functions without args to be decorated
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximaximum committed Dec 1, 2021
1 parent 71a9bf5 commit 9d0f112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngxs-effects/src/lib/effect.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function Effect<EClassType, ArgsType, ReturnType, ActionObject>(
return (
target: EClassType,
propertyName: string,
descriptor: TypedPropertyDescriptor<(args: ActionObject) => ReturnType>
descriptor: TypedPropertyDescriptor<(args?: ActionObject) => ReturnType>
): void => {
actions.forEach(action => {
const metadata: EffectMetadataInterface<ArgsType, ActionObject> = {
Expand Down

0 comments on commit 9d0f112

Please sign in to comment.