mirror of
https://github.com/denoland/std.git
synced 2024-11-21 12:40:03 +00:00
parent
23f47386ea
commit
e92bc0cced
@ -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 : [],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user