| 25 | const someUnion = S.Union([str, num]) |
| 26 | |
| 27 | export class Something extends S.Class<Something>("Something")({ |
| 28 | id: S.StringId.withConstructorDefault, |
| 29 | displayName: S.NonEmptyString255, |
| 30 | name: S.NullOr(S.NonEmptyString255).withConstructorDefault, |
| 31 | n: S.Date.withConstructorDefault, |
| 32 | union: someUnion.pipe(S.withConstructorDefault(Effect.succeed({ _tag: "string" as const, value: "hi" }))) |
| 33 | }) {} |
| 34 | export declare namespace Something { |
| 35 | // eslint-disable-next-line @typescript-eslint/no-empty-object-type |
| 36 | export interface Encoded extends S.Codec.Encoded<typeof Something> {} |