OpenApiDefined<T>: Omit<T, "openapi"> & {
    openapi?: ExcludeFalse<T>;
}

just to remove the | false on openapi keys . ( allow input "| false" , but need without "| false" when used )

Type Parameters

  • T extends {
        openapi?: false | any;
    }

Type declaration