Skip to content

Commit

Permalink
Merge pull request #468 from shawnmcknight/handler
Browse files Browse the repository at this point in the history
Mark handlers as optional
  • Loading branch information
icebob authored Feb 13, 2019
2 parents 84a58eb + 4a5df7e commit 8b47aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ declare namespace Moleculer {
params?: ActionParams;
service?: Service;
cache?: boolean | ActionCacheOptions;
handler: ActionHandler;
handler?: ActionHandler;
metrics?: MetricsOptions;
bulkhead?: BulkheadOptions;
circuitBreaker?: BrokerCircuitBreakerOptions;
Expand Down Expand Up @@ -130,7 +130,7 @@ declare namespace Moleculer {
interface ServiceEvent {
name?: string;
group?: string;
handler: ServiceEventHandler;
handler?: ServiceEventHandler;
}

type ServiceEvents = { [key: string]: ServiceEventHandler | ServiceEvent };
Expand Down

0 comments on commit 8b47aed

Please sign in to comment.