14 lines
302 B
TypeScript
14 lines
302 B
TypeScript
import * as S from "effect/Schema";
|
|
|
|
export type JobId = S.Schema.Type<typeof JobId>;
|
|
export const JobId = S.String.annotate({
|
|
description: "The ID of the job",
|
|
});
|
|
|
|
export class Job extends S.Class<Job>("Job")({
|
|
id: JobId,
|
|
content: S.String,
|
|
}) {}
|
|
|
|
export const decodeJob = S.decodeEffect(Job);
|