From d7f8fd6d1a538e48f21b5e93819570a57805426a Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Fri, 23 Dec 2022 08:31:20 +0900 Subject: [PATCH] fix: some type errors around fastify plugins (#9391) --- .yarnrc.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.yarnrc.yml b/.yarnrc.yml index 4549f07154..76f4d0ff3d 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -20,6 +20,19 @@ packageExtensions: koa-views@*: dependencies: pug: "*" + # these are needed to extend fastify types + "@fastify/accepts@*": + peerDependencies: + fastify: "*" + "@fastify/cookie@*": + peerDependencies: + fastify: "*" + "@fastify/static@*": + peerDependencies: + fastify: "*" + "@fastify/view@*": + peerDependencies: + fastify: "*" plugins: - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs