Skip to content

Commit 26ef259

Browse files
committed
Re-roll lockfile
1 parent 80b9695 commit 26ef259

File tree

3 files changed

+820
-731
lines changed

3 files changed

+820
-731
lines changed

src/lib/plugins/zoey-says/walker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BlockContent, Blockquote, HTML } from 'mdast';
1+
import { BlockContent, Blockquote, DefinitionContent, HTML } from 'mdast';
22
import { Position } from 'unist';
33
import { VFile } from 'vfile';
44
import BaseWalker from '../../walker';
@@ -23,7 +23,7 @@ function isZoeySays({ children }: Blockquote): boolean {
2323
firstParagraph.value === ZOEY_SAYS;
2424
}
2525

26-
async function render(nodes: BlockContent[], position?: Position): Promise<HTML> {
26+
async function render(nodes: Array<BlockContent | DefinitionContent>, position?: Position): Promise<HTML> {
2727
let content = [];
2828

2929
for (let node of nodes) {

src/lib/walker.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import { VFile } from 'vfile';
66
type Handler<Options> = (this: Walker<Options>, node: Node) => Option<Node> | Promise<Option<Node>>;
77

88
function isParent(node: Node): node is Parent {
9-
return Array.isArray(node.children);
9+
return Array.isArray((node as Node & { children: unknown }).children);
1010
}
1111

1212
export default class Walker<Options> {
13-
constructor(protected options: Options, protected file: VFile) {}
13+
constructor(protected options: Options, protected file: VFile) { }
1414

1515
[key: string]: unknown;
1616

@@ -42,10 +42,10 @@ export default class Walker<Options> {
4242
let handler = maybeHandler as Handler<Options>;
4343
return handler.call(this, node);
4444
} else if (isParent(node)) {
45-
return {
45+
return ({
4646
...node,
4747
children: await this.visit(node.children)
48-
};
48+
} as Parent);
4949
} else {
5050
return node;
5151
}

0 commit comments

Comments
 (0)