Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Sep 29, 2020
1 parent 6d12cfb commit a9d28d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/plugins/expressions/common/ast/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type ExpressionAstNode =

export type ExpressionAstExpression = {
type: 'expression';
chain: Array<Omit<ExpressionAstFunction, 'debug'>>;
chain: ExpressionAstFunction[];
};

export type ExpressionAstFunction = {
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/expressions/common/expression_functions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ import { PersistableStateDefinition } from '../../../kibana_utils/common';
* `ExpressionFunctionDefinition` is the interface plugins have to implement to
* register a function in `expressions` plugin.
*/
export type ExpressionFunctionDefinition<
export interface ExpressionFunctionDefinition<
Name extends string,
Input,
Arguments extends Record<string, any>,
Output,
Context extends ExecutionContext = ExecutionContext
> = PersistableStateDefinition<ExpressionAstFunction['arguments']> & {
> extends PersistableStateDefinition<ExpressionAstFunction['arguments']> {
/**
* The name of the function, as will be used in expression.
*/
Expand Down Expand Up @@ -104,7 +104,7 @@ export type ExpressionFunctionDefinition<
*/
types: AnyExpressionFunctionDefinition['inputTypes'];
};
};
}

/**
* Type to capture every possible expression function definition.
Expand Down

0 comments on commit a9d28d7

Please sign in to comment.