Permalink
Browse files

changes filter scaffold

  • Loading branch information...
antoniusostermann committed Jan 25, 2019
1 parent 6bf2164 commit 02cbde2db0a3b45b3f1a53f707d034deaa93397a
Showing with 2 additions and 10 deletions.
  1. +2 −10 scaffold/example-filter.ts.scaffold
@@ -1,4 +1,4 @@
import { Filter, State } from "assistant-source";
import { Filter, State, FilterExecutionContext } from "assistant-source";
import { injectable } from "inversify";

/**
@@ -7,15 +7,7 @@ import { injectable } from "inversify";
*/
@injectable()
export class ExampleFilter implements Filter {
public execute(
state: State.Required,
stateName: string,
intentMethod: string,
...args: any[]
):
| Promise<{ state: string; intent: string; args?: any[] } | boolean>
| { state: string; intent: string; args?: any[] }
| boolean {
public execute(executionContext: FilterExecutionContext) {
// evaluate criteria
const redirectNeeded = false;

0 comments on commit 02cbde2

Please sign in to comment.