Skip to content

Commit 76dfdba

Browse files
authored
Merge pull request #28 from wSedlacek/patch-1
fix: More specific return types.
2 parents 73dd716 + ac434be commit 76dfdba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { QueryComplexityOptions } from './QueryComplexity';
1010
export * from './estimators';
1111
export * from './QueryComplexity';
1212

13-
export default function createQueryComplexityValidator(options: QueryComplexityOptions): Function {
13+
export default function createQueryComplexityValidator(options: QueryComplexityOptions): (context: ValidationContext) => QueryComplexity {
1414
return (context: ValidationContext): QueryComplexity => {
1515
return new QueryComplexity(context, options);
1616
};

0 commit comments

Comments
 (0)