From ef0f892062ad2de88c39cf70449b07a5f0292cbf Mon Sep 17 00:00:00 2001 From: Benjie Date: Fri, 6 Dec 2024 14:50:33 +0000 Subject: [PATCH] Update src/type/validate.ts --- src/type/validate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/type/validate.ts b/src/type/validate.ts index 8c29a9fe4f..ce8f456555 100644 --- a/src/type/validate.ts +++ b/src/type/validate.ts @@ -436,8 +436,8 @@ function validateTypeImplementsInterface( // Asserts that field is not deprecated unless interface field is if ( - ifaceField.deprecationReason == null && - typeField.deprecationReason != null + typeField.deprecationReason != null && + ifaceField.deprecationReason == null ) { context.reportError( `Interface field ${iface.name}.${fieldName} is not deprecated, so ` +