Hyperlinkv0.8.0-beta.28

SchemaRepresentation

SchemaRepresentation.$Literalconsteffect/SchemaRepresentation.ts:1217
Schema.Struct<{
  readonly _tag: Schema.tag<"Literal">
  readonly annotations: Schema.optional<
    Schema.decodeTo<
      Schema.$Record<Schema.String, Schema.Unknown>,
      Schema.$Record<
        Schema.String,
        Schema.Codec<PrimitiveTree, PrimitiveTree, never, never>
      >,
      never,
      never
    >
  >
  readonly literal: Schema.Union<
    readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.BigInt]
  >
}>

Schema for the Literal representation node.

schemasLiteral
export const $Literal = Schema.Struct({
  _tag: Schema.tag("Literal"),
  annotations: Schema.optional($Annotations),
  literal: $LiteralValue
}).annotate({ identifier: "Literal" })
Referenced by 1 symbols