Skip to content

Commit c53a0a6

Browse files
committed
Fix unused @ts-expect-error and simplify tsconfig in core-data via patch-package
1 parent 3da0865 commit c53a0a6

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
diff --git a/node_modules/@wordpress/core-data/src/utils/crdt-blocks.ts b/node_modules/@wordpress/core-data/src/utils/crdt-blocks.ts
2+
index 90a0698..594bb03 100644
3+
--- a/node_modules/@wordpress/core-data/src/utils/crdt-blocks.ts
4+
+++ b/node_modules/@wordpress/core-data/src/utils/crdt-blocks.ts
5+
@@ -10,7 +10,7 @@ import fastDeepEqual from 'fast-deep-equal/es6';
6+
import { RichTextData } from '@wordpress/rich-text';
7+
import { Y } from '@wordpress/sync';
8+
9+
-// @ts-expect-error No exported types.
10+
+
11+
import { getBlockTypes } from '@wordpress/blocks';
12+
13+
/**
14+
diff --git a/node_modules/@wordpress/core-data/tsconfig.json b/node_modules/@wordpress/core-data/tsconfig.json
15+
index 57c9d20..2c450c0 100644
16+
--- a/node_modules/@wordpress/core-data/tsconfig.json
17+
+++ b/node_modules/@wordpress/core-data/tsconfig.json
18+
@@ -1,25 +1,10 @@
19+
{
20+
- "$schema": "https://json.schemastore.org/tsconfig.json",
21+
- "extends": "../../tsconfig.base.json",
22+
- "compilerOptions": {
23+
- "checkJs": false,
24+
- "noImplicitAny": false
25+
- },
26+
- "references": [
27+
- { "path": "../api-fetch" },
28+
- { "path": "../compose" },
29+
- { "path": "../block-editor" },
30+
- { "path": "../data" },
31+
- { "path": "../deprecated" },
32+
- { "path": "../element" },
33+
- { "path": "../html-entities" },
34+
- { "path": "../i18n" },
35+
- { "path": "../is-shallow-equal" },
36+
- { "path": "../private-apis" },
37+
- { "path": "../rich-text" },
38+
- { "path": "../sync" },
39+
- { "path": "../undo-manager" },
40+
- { "path": "../url" },
41+
- { "path": "../warning" }
42+
- ]
43+
+ "$schema": "https://json.schemastore.org/tsconfig.json",
44+
+ "compilerOptions": {
45+
+ "skipLibCheck": true,
46+
+ "esModuleInterop": true,
47+
+ "noEmit": true,
48+
+ "composite": true
49+
+
50+
+ }
51+
}
52+
\ No newline at end of file

0 commit comments

Comments
 (0)