Skip to main content
Home
This release is 1 version behind 1.2.0 — the latest version of @wogo/matrix-client. Jump to latest
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
52%
Published
2 months ago (1.0.0)
Package root>schema.ts
import { Schema } from "npm:effect@3.12.10"; type ITardisCall = Schema.Union<[ Schema.Literal<["checkIn"]>, Schema.Literal<["billing"]>, Schema.Literal<["paymentConfirmation"]>, Schema.Literal<["checkout"]> ]> export const TardisCall: ITardisCall = Schema.Union( Schema.Literal("checkIn"), Schema.Literal("billing"), Schema.Literal("paymentConfirmation"), Schema.Literal("checkout"), ) type ICallState = Schema.Union<[ Schema.Literal<["pending"]>, Schema.Literal<["success"]>, Schema.Literal<["failure"]>, Schema.Literal<["running"]> ]> export const CallState: ICallState = Schema.Union( Schema.Literal("pending"), Schema.Literal("success"), Schema.Literal("failure"), Schema.Literal("running"), ); type IParkingCall = Schema.Struct<{ id: typeof Schema.String; licence: typeof Schema.String; timestamp: typeof Schema.Date; tardis: ITardisCall; state: ICallState; meta: typeof Schema.String; }> export const ParkingCall: IParkingCall = Schema.Struct({ id: Schema.String, licence: Schema.String, timestamp: Schema.Date, tardis: TardisCall, state: CallState, meta: Schema.String, })