Skip to content

Commit

Permalink
chore: use arrow-type instead of Function in type declaration
Browse files Browse the repository at this point in the history
Type `Function` is not recommended to use by `@typescript-eslint/ban-types`.
Let's use a bit more specific function interface.
  • Loading branch information
vvagaytsev committed May 15, 2024
1 parent 96b2300 commit 9bcf9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/template-string/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface TemplateHelperFunction {
arguments: { [name: string]: Joi.Schema }
outputSchema: Joi.Schema
exampleArguments: ExampleArgument[]
fn: Function
fn: (...args: any[]) => unknown
}

const helperFunctionSpecs: TemplateHelperFunction[] = [
Expand Down

0 comments on commit 9bcf9cb

Please sign in to comment.