Skip to content

Commit

Permalink
remove types
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Jul 30, 2023
1 parent eddf349 commit 1fbca3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions types/plugin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ declare module "fastify" {
}

interface SignerMethods {
/**
* Signs the specified cookie using the secret/signer provided.
* @param value cookie value
*/
signCookie(value: string): string;

/**
* Unsigns the specified cookie using the secret/signer provided.
* @param value Cookie value
Expand Down
3 changes: 0 additions & 3 deletions types/plugin.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,9 @@ server.after((_err) => {
);
});

expectType<(value: string) => string>(server.signCookie)
expectType<(value: string) => fastifyCookieStar.UnsignResult>(server.unsignCookie)

server.get('/', (request, reply) => {
expectType<(value: string) => string>(request.signCookie)
expectType<(value: string) => string>(reply.signCookie)
expectType<(value: string) => fastifyCookieStar.UnsignResult>(request.unsignCookie)
expectType<(value: string) => fastifyCookieStar.UnsignResult>(reply.unsignCookie)
});
Expand Down

0 comments on commit 1fbca3c

Please sign in to comment.