diff --git a/yaml/_type/seq.ts b/yaml/_type/seq.ts index 2bae2affa..14b3b7764 100644 --- a/yaml/_type/seq.ts +++ b/yaml/_type/seq.ts @@ -7,11 +7,7 @@ import type { Type } from "../_type.ts"; export const seq: Type<"sequence", unknown[]> = { tag: "tag:yaml.org,2002:seq", - resolve() { - return true; - }, - construct(data) { - return data !== null ? data : []; - }, kind: "sequence", + resolve: (): boolean => true, + construct: (data: unknown[] | null): unknown[] => data !== null ? data : [], };