Skip to content

Commit

Permalink
Fix type of OriginCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-browning committed Sep 29, 2023
1 parent 8b3d70b commit 592c254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<OriginType>) => void;
type OriginType = string | boolean | RegExp;
type ValueOrArray<T> = T | ArrayOfValueOrArray<T>;

Expand Down

0 comments on commit 592c254

Please sign in to comment.