Skip to content

Commit aaf93af

Browse files
committed
fix: return type
1 parent 2af0e14 commit aaf93af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/myst-transforms/src/blocks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export function blockMetadataTransform(mdast: GenericParent, file: VFile) {
8484
if (codeNode !== null && !codeNode.identifier) {
8585
codeNode.identifier = `${block.identifier}-code`;
8686
}
87-
const outputsNode = select('outputs', block) as GenericNode | undefined;
88-
if (outputsNode !== undefined && !outputsNode.identifier) {
87+
const outputsNode = select('outputs', block) as GenericNode | null;
88+
if (outputsNode !== null && !outputsNode.identifier) {
8989
// Label outputs node
9090
outputsNode.identifier = `${block.identifier}-output`;
9191
// Enumerate outputs

0 commit comments

Comments
 (0)