Rename optional and undefinable functions for clarity; update related schemas to use optionalOrNull

This commit is contained in:
Mario Campos
2026-06-19 13:55:56 -05:00
parent c8e32e423d
commit defcf1bff6
5 changed files with 53 additions and 53 deletions

View File

@@ -240,8 +240,8 @@ export function isVersionInfo(x: unknown): x is VersionInfo {
json.validateSchema(
{
version: json.string,
features: json.undefinable(json.object),
overlayVersion: json.undefinable(json.number),
features: json.optional(json.object),
overlayVersion: json.optional(json.number),
},
x,
)