Skip to content

Commit

Permalink
fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed May 26, 2024
1 parent c717637 commit ed54813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/reply.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export interface FastifyReply<
/**
* @deprecated The `reply.redirect()` method has a new signature: `reply.reply.redirect(url: string, code?: number)`. It will be enforced in `fastify@v5`'.
*/
writeEarlyHints(hints: Record<string, string | string[]>, callback?: () => void): void;
redirect(statusCode: number, url: string): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider>;
redirect(url: string, statusCode?: number): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider>;
writeEarlyHints(hints: Record<string, string | string[]>, callback?: () => void): void;
hijack(): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider>;
callNotFound(): void;
/**
Expand Down

0 comments on commit ed54813

Please sign in to comment.