Skip to content

Commit

Permalink
fix: ts expect error wrong location
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniCardamone committed Dec 30, 2021
1 parent 5cab40d commit da9d59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ export default fastifyPlugin<FastifyAutosecurityOptions>(

if (securityData !== undefined) {
try {
// @ts-expect-error ts cannot figure out security data to apply
solvedSecurity[security] = await securityModules[
security
].handle.apply(
securityModules[security],
// @ts-expect-error ts cannot figure out security data to apply
Array.isArray(securityData) ? securityData : [securityData]
)
} catch (e) {
Expand Down

0 comments on commit da9d59b

Please sign in to comment.