UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

18 lines 692 B
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.Bindings = void 0; const resource_1 = require("cloudflare/resource"); class Bindings extends resource_1.APIResource { /** * List the bindings for a Workers script. */ get(params, options) { const { zone_id } = params; return this._client.get(`/zones/${zone_id}/workers/script/bindings`, options)._thenUnwrap((obj) => obj.result); } } exports.Bindings = Bindings; (function (Bindings) { })(Bindings = exports.Bindings || (exports.Bindings = {})); //# sourceMappingURL=bindings.js.map