jamespot-user-api
    Preparing search index...

    Function inferUserLicenseSchema

    • Type Parameters

      Parameters

      • type: T

      Returns ZodObject<
          { license: ZodUnion<[ZodLiteral<"1">, ZodLiteral<"0">]>; user: T },
          "strip",
          ZodTypeAny,
          {
              [k in "user" | "license"]: addQuestionMarks<
                  baseObjectOutputType<
                      { license: ZodUnion<[ZodLiteral<"1">, ZodLiteral<"0">]>; user: T },
                  >,
                  any,
              >[k]
          },
          {
              [k in "user"
              | "license"]: baseObjectInputType<
                  { license: ZodUnion<[ZodLiteral<"1">, ZodLiteral<"0">]>; user: T },
              >[k]
          },
      >