mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 07:49:43 +02:00
refactor: enable a few TS flags (#6852)
* refactor: enable a few TS flags * refactor * revert to working version * fix * better * change
This commit is contained in:
parent
9f925a42bf
commit
4db0c620de
71 changed files with 210 additions and 174 deletions
|
@ -71,7 +71,7 @@ const plugin: Plugin<[PluginOptions?]> = (options = {}) => {
|
|||
if (isParent(node)) {
|
||||
let index = 0;
|
||||
while (index < node.children.length) {
|
||||
const child = node.children[index];
|
||||
const child = node.children[index]!;
|
||||
if (matchNode(child)) {
|
||||
const result = transformNode(child, sync);
|
||||
node.children.splice(index, 1, ...result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue