Share the CommonMark grammar, close the guard's hole, refuse the lists no marker spells
CI / gate (push) Successful in 4s
CI / gate (push) Successful in 4s
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
import { isJsonValue, type JsonValue } from './canonical-json.ts'
|
||||
import { isJsonValue, type JsonValue } from './json-value.ts'
|
||||
|
||||
export type AdfAttributes = { [key: string]: JsonValue }
|
||||
|
||||
@@ -48,7 +48,7 @@ function isAdfNode(value: unknown): value is AdfNode {
|
||||
}
|
||||
|
||||
function isArrayOf<T>(value: unknown, guard: (item: unknown) => item is T): value is T[] {
|
||||
return Array.isArray(value) && value.every(guard)
|
||||
return Array.isArray(value) && [...value].every(guard)
|
||||
}
|
||||
|
||||
function isAttributes(value: unknown): value is AdfAttributes {
|
||||
|
||||
Reference in New Issue
Block a user