From a74f64c6b558f00154898a6791422f2c3a430ac9 Mon Sep 17 00:00:00 2001 From: Luis Herranz Date: Mon, 10 Jun 2024 17:43:57 +0200 Subject: [PATCH] Fix test and add note --- packages/interactivity/src/test-types/store.ts | 4 +--- packages/interactivity/src/test-types/tsconfig.json | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/interactivity/src/test-types/store.ts b/packages/interactivity/src/test-types/store.ts index c9e958f9c879c2..322a351581356c 100644 --- a/packages/interactivity/src/test-types/store.ts +++ b/packages/interactivity/src/test-types/store.ts @@ -22,10 +22,8 @@ const { actions } = store( 'test', { } { - // This is intentionally included to ensure that this test fails on GitHub - // before replacing it with @ts-expect-error. + // @ts-expect-error const var1: string = actions.sync(); - // @ts-expect-error const var2: Promise< string > = actions.async(); // @ts-expect-error diff --git a/packages/interactivity/src/test-types/tsconfig.json b/packages/interactivity/src/test-types/tsconfig.json index 81819cbd0344cd..40ac5fb51f07c9 100644 --- a/packages/interactivity/src/test-types/tsconfig.json +++ b/packages/interactivity/src/test-types/tsconfig.json @@ -2,9 +2,11 @@ "$schema": "https://json.schemastore.org/tsconfig.json", "extends": "../../../../tsconfig.base.json", "compilerOptions": { + "rootDir": "..", "emitDeclarationOnly": false, "noEmit": true, - "rootDir": "..", + // Implicit any can be removed once this work is finished: + // https://github.com/WordPress/gutenberg/pull/61695 "noImplicitAny": false, "noUnusedLocals": false },