Skip to content

Commit

Permalink
refactor: remove agentStatusSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
Jshen123 committed Apr 29, 2023
1 parent fb15157 commit a832040
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/types/agentTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,9 @@ export const [AGENT_STATUS_RUNNING, AGENT_STATUS_STOPPED] = [
"stopped" as const,
];

const AgentStatusSchema = z.union([
z.literal(AGENT_STATUS_RUNNING),
z.literal(AGENT_STATUS_STOPPED),
z.literal(""),
]);

export type AgentStatus = z.infer<typeof AgentStatusSchema>;
export type AgentStatus =
| typeof AGENT_STATUS_RUNNING
| typeof AGENT_STATUS_STOPPED;

/* Type Predicates */
export const isTask = (value: unknown): value is Task => {
Expand Down

0 comments on commit a832040

Please sign in to comment.