Aracılığıyla paylaş


JavaScript için Azure Core HTTP Uyumluluk kitaplığı

Bu kitaplık, genel API yüzeylerinde hataya neden olan değişikliklere neden olmadan @azure/core-http kullanmaktan @azure/core-client & @azure/core-rest-pipeline'a geçmek isteyen Azure istemci kitaplıkları tarafından kullanılacak sınıflar ve arabirimler sağlar.

Kullanım

ExtendedCommonClientOptions

Kitaplık ile @azure/core-http , options özel istemcinin parametresi şöyle görünür:

export interface SearchClientOptions extends PipelineOptions {
  apiVersion?: string;
}

@azure/core-client & @azure/core-rest-pipeline kitaplıklarıyla, options özel istemcinin parametresi şöyle görünür:

export interface SearchClientOptions extends CommonClientOptions {
  apiVersion?: string;
}

Çekirdek HTTP Uyumluluk kitaplığı options ile özel istemcinin parametresi şöyle görünür:

export interface SearchClientOptions extends ExtendedCommonClientOptions {
  apiVersion?: string;
}