Type alias SubscriptionScope

SubscriptionScope: objectInputType<{
    actions: ZodArray<ZodEffects<ZodEnum<["write", "create", "delete"]>, "create" | "write" | "delete", "create" | "write" | "delete">, "many">;
}, ZodTypeAny, "passthrough">

Type declaration

  • actions: ZodArray<ZodEffects<ZodEnum<["write", "create", "delete"]>, "create" | "write" | "delete", "create" | "write" | "delete">, "many">

    以下を複数指定可能

    • write: すべて可能
    • create: subscribe(subscribe時に subscription が作成される)
    • delete: unsubscribe(unsubscribe時に subscription が削除される)