Skip to content

Commit

Permalink
Merge pull request #12817 from micalevisk/fix/issue-12816
Browse files Browse the repository at this point in the history
fix(common): type def for cors delegated callback function option
  • Loading branch information
kamilmysliwiec authored Dec 18, 2023
2 parents ad8639d + 5448055 commit 91cedae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface CorsOptions {
}

export interface CorsOptionsCallback {
(error: Error, options: CorsOptions): void;
(error: Error | null, options: CorsOptions): void;
}
export interface CorsOptionsDelegate<T> {
(req: T, cb: CorsOptionsCallback): void;
Expand Down

0 comments on commit 91cedae

Please sign in to comment.