Skip to content

Commit d0eeb11

Browse files
committed
Fix TS warnings
1 parent 076c6f4 commit d0eeb11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/plugins/run-code-blocks/parse-args.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function ToBool(input: string): boolean {
2727
return input === 'true';
2828
}
2929

30-
export type KeyTransforms = Array<KeyTransform<string | undefined, unknown>>;
30+
export type KeyTransforms = KeyTransform<string | undefined, unknown>[];
3131

3232
export default function parseArgs<Args extends object>(node: Code, transforms: KeyTransforms): Args {
3333
let { lang, meta } = node;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function isZoeySays({ children }: Blockquote): boolean {
2323
firstParagraph.value === ZOEY_SAYS;
2424
}
2525

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

2929
for (let node of nodes) {

0 commit comments

Comments
 (0)