From a623f665086674d08176e33dadc60a91c6277a21 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Thu, 16 Apr 2020 11:11:16 -0400 Subject: [PATCH 1/2] Block Editor: Add BlockContext component to type-checking --- packages/block-editor/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-editor/tsconfig.json b/packages/block-editor/tsconfig.json index 7cd3fd793fcbc7..b1fee3fc1342cd 100644 --- a/packages/block-editor/tsconfig.json +++ b/packages/block-editor/tsconfig.json @@ -8,6 +8,7 @@ // expand this array with files which can be type-checked. At some point in // the future, this can be simplified to an `includes` of `src/**/*`. "files": [ + "src/components/block-context/index.js", "src/utils/dom.js" ] } From e00a4850737c89860d98f5830cf2b0b09bc0d210 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Thu, 14 May 2020 09:53:56 -0400 Subject: [PATCH 2/2] Include element package in references --- packages/block-editor/tsconfig.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-editor/tsconfig.json b/packages/block-editor/tsconfig.json index b1fee3fc1342cd..55aa260a475945 100644 --- a/packages/block-editor/tsconfig.json +++ b/packages/block-editor/tsconfig.json @@ -4,6 +4,9 @@ "rootDir": "src", "declarationDir": "build-types" }, + "references": [ + { "path": "../element" } + ], // NOTE: This package is being progressively typed. You are encouraged to // expand this array with files which can be type-checked. At some point in // the future, this can be simplified to an `includes` of `src/**/*`.