UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

34 lines • 1.17 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../core/resource.mjs"; import { path } from "../../../../internal/utils/path.mjs"; export var BaseBrowserFamily = /* @__PURE__ */ (() => { class BaseBrowserFamily extends APIResource { /** * Retrieves the top locations, by HTTP requests, of the requested browser family. * * @example * ```ts * const browserFamily = * await client.radar.http.locations.browserFamily.get( * 'CHROME', * ); * ``` */ get(browserFamily, query = {}, options) { return this._client.get(path `/radar/http/top/locations/browser_family/${browserFamily}`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseBrowserFamily._key = Object.freeze([ 'radar', 'http', 'locations', 'browserFamily', ]); return BaseBrowserFamily; })(); export class BrowserFamily extends BaseBrowserFamily { } //# sourceMappingURL=browser-family.mjs.map