-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
HTTPQL return types for the deserialize function should be structured similarly to
ClauseRequest = { field: "FileExtension": expr: ...} | { "field": ... }This allows us to have exhaustive switch/case statements:
type X = { field: "A"; value: "B" } | { field: "C"; value: "D" };
const x: X = {};
switch (x.field) {
case "A":
x.value; // should be "B"
break;
case "C":
x.value; // should be "D"
break;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels