Schema.Literals<readonly ["high", "normal", "low"]>A queue entry's priority level.
wire schemas
Source src/WorkPool.ts:2361 lines
export const const queuePriority: Schema.Literals<
readonly ["high", "normal", "low"]
>
const queuePriority: {
literals: L;
members: { readonly [K in keyof L]: Literal<L[K]>; };
mapMembers: (f: (members: readonly [Schema.Literal<'high'>, Schema.Literal<'normal'>, Schema.Literal<'low'>]) => To) => Schema.Union<{ [K in keyof Readonly<To>]: Readonly<To>[K]; }>;
pick: (literals: L2) => Schema.Literals<L2>;
transform: (to: L2) => Schema.Union<readonly [Schema.decodeTo<Schema.Literal<L2['0']>, Schema.Literal<'high'>, never, never>, Schema.decodeTo<Schema.Literal<L2['1']>, Schema.Literal<'normal'>, never, never>, Schema.decodeTo<Schema.Literal<L2['2']>, S…;
Rebuild: Rebuild;
Iso: Iso;
ast: Ast;
Type: T;
Encoded: E;
DecodingServices: RD;
EncodingServices: RE;
annotate: (annotations: Schema.Annotations.Bottom<'high' | 'normal' | 'low', readonly []>) => Schema.Literals<readonly ['high', 'normal', 'low']>;
annotateKey: (annotations: Schema.Annotations.Key<'high' | 'normal' | 'low'>) => Schema.Literals<readonly ['high', 'normal', 'low']>;
check: (checks_0: Check<'high' | 'normal' | 'low'>, ...checks: Array<Check<'high' | 'normal' | 'low'>>) => Schema.Literals<readonly ['high', 'normal', 'low']>;
rebuild: (ast: Union<Literal>) => Schema.Literals<readonly ['high', 'normal', 'low']>;
make: (input: 'high' | 'normal' | 'low', options?: MakeOptions) => 'high' | 'normal' | 'low';
makeOption: (input: 'high' | 'normal' | 'low', options?: MakeOptions) => Option_.Option<'high' | 'normal' | 'low'>;
makeEffect: (input: 'high' | 'normal' | 'low', options?: MakeOptions) => Effect.Effect<'high' | 'normal' | 'low', SchemaError, never>;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
}
A queue entry's priority level.
queuePriority = import SchemaSchema.function Literals<
L extends ReadonlyArray<SchemaAST.LiteralValue>
>(literals: L): Literals<L>
Creates a union schema from an array of literal values.
Example (Defining status codes)
import { Schema } from "effect"
const schema = Schema.Literals(["active", "inactive", "pending"])
// accepts "active", "inactive", or "pending"
Literals(["high", "normal", "low"]);
Referenced by 3 symbols