mirror of
https://github.com/denoland/std.git
synced 2024-11-21 12:40:03 +00:00
parent
e92bc0cced
commit
f80d8d1519
@ -6,11 +6,7 @@ import type { Type } from "../_type.ts";
|
||||
|
||||
export const str: Type<"scalar", string> = {
|
||||
tag: "tag:yaml.org,2002:str",
|
||||
resolve() {
|
||||
return true;
|
||||
},
|
||||
construct(data): string {
|
||||
return data !== null ? data : "";
|
||||
},
|
||||
kind: "scalar",
|
||||
resolve: (): boolean => true,
|
||||
construct: (data: string | null): string => data !== null ? data : "",
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user