QueryRule: (query: Query) => ReadonlyMap<string, readonly string[]>

A rule over the whole query, checked before the nodes themselves. It returns the errors it finds, by the id of the node they belong to.

Type declaration

    • (query: Query): ReadonlyMap<string, readonly string[]>
    • Parameters

      Returns ReadonlyMap<string, readonly string[]>