UNPKG

the-moby-effect

Version:
20 lines (17 loc) 665 B
import * as Schema from "effect/Schema"; import * as MobyNumber from "../schemas/number.ts"; export class SwarmReplicatedService extends Schema.Class<SwarmReplicatedService>("SwarmReplicatedService")( { Replicas: Schema.optional( Schema.NullOr( MobyNumber.BigIntFromWireString.check(Schema.isBetweenBigInt({ minimum: 0n, maximum: 2n ** 64n - 1n })) ) ), }, { identifier: "SwarmReplicatedService", title: "swarm.ReplicatedService", documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/swarm#ReplicatedService", } ) {}