Fix Windows diagnostics schema union

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-06-02 16:07:46 +00:00
1 parent 26ad4021b9
commit b44e0ca1e5
1 file changed
+1 -1
@@ -41,7 +41,7 @@ const WindowsProcessRecord = Schema.Struct({
});
type WindowsProcessRecord = Schema.Schema.Type<typeof WindowsProcessRecord>;
const WindowsProcessRecordsJson = Schema.fromJsonString(
Schema.Union(Schema.Array(WindowsProcessRecord), WindowsProcessRecord),
Schema.Union([Schema.Array(WindowsProcessRecord), WindowsProcessRecord]),
);
const decodeWindowsProcessRecordsJson = Schema.decodeUnknownEffect(WindowsProcessRecordsJson);