Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

Job.ts

13 lines302 Bytes

1import * as S from "effect/Schema";
2​
3export type JobId = S.Schema.Type<typeof JobId>;
4export const JobId = S.String.annotate({
5 description: "The ID of the job",
6});
7​
8export class Job extends S.Class<Job>("Job")({
9 id: JobId,
10 content: S.String,
11}) {}
12​
13export const decodeJob = S.decodeEffect(Job);