Every drawable element the tutor brain can send to the edge device.
Use the kind discriminant to safely narrow to a concrete variant:
kind
switch (primitive.kind) { case 'text': ... case 'line': ... // TypeScript flags any unhandled case} Copy
switch (primitive.kind) { case 'text': ... case 'line': ... // TypeScript flags any unhandled case}
Every drawable element the tutor brain can send to the edge device.
Use the
kinddiscriminant to safely narrow to a concrete variant: