import _Node from "./node"
import {Context, ContextTypes, Doc, ParserStateOption} from "./node"
export default class Entry extends _Node {
    /** @type {?_Node} */
    get key() {
        return this.cacheNode("key")
    }
    /** @type {_Node} */
    get value() {
        return this.cacheNode("value")
    }
    /**
     * Checks that syntax seems ok
     * @param {Context} context
     * @param {Set<ParserStateOption.Base>} [parser_state]
     * @param {?Doc} [doc]
     * @returns {?ContextTypes} The set of types applicable to this value
     */
    check(context, parser_state = new Set(), doc = null) {
        super.check(context, parser_state, doc)
        if(this.key) {
            this.key.check(context, new Set(), null)
        }
        return this.value.check(context, new Set(), null)
    }
}

import _Node from "./node"
import {Context, ContextTypes, Doc, ParserStateOption} from "./node"
export default class Entry extends _Node {
    /** @type {?_Node} */
    get key() {
        return this.cacheNode("key")
    }
    /** @type {_Node} */
    get value() {
        return this.cacheNode("value")
    }
    /**
     * Checks that syntax seems ok
     * @param {Context} context
     * @param {Set<ParserStateOption.Base>} [parser_state]
     * @param {?Doc} [doc]
     * @returns {?ContextTypes} The set of types applicable to this value
     */
    check(context, parser_state = new Set(), doc = null) {
        super.check(context, parser_state, doc)
        if(this.key) {
            this.key.check(context, new Set(), null)
        }
        this.value.check(context, new Set(), null)
        return ContextTypes.empty
    }
}

--- 
+++ 
@@ -21,7 +21,6 @@
         if(this.key) {
             this.key.check(context, new Set(), null)
         }
-        this.value.check(context, new Set(), null)
-        return ContextTypes.empty
+        return this.value.check(context, new Set(), null)
     }
 }
Set the return type for Entry to the RHS
