diff --git a/types/index.d.ts b/types/index.d.ts index 0abf15f..9fdcef1 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -2,7 +2,7 @@ import { FastifyInstance, FastifyPluginCallback, FastifyRequest } from 'fastify'; -type OriginCallback = (err: Error | null, allow: boolean) => void; +type OriginCallback = (err: Error | null, origin: ValueOrArray) => void; type OriginType = string | boolean | RegExp; type ValueOrArray = T | ArrayOfValueOrArray;