UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

26 lines 1.01 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as BindingsAPI from 'cloudflare/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings'; import * as WorkersAPI from 'cloudflare/resources/workers/workers'; export declare class Bindings extends APIResource { /** * Fetch script bindings from a script uploaded to a Workers for Platforms * namespace. */ get(dispatchNamespace: string, scriptName: string, params: BindingGetParams, options?: Core.RequestOptions): Core.APIPromise<BindingGetResponse>; } /** * List of bindings attached to this Worker */ export type BindingGetResponse = Array<WorkersAPI.Binding>; export interface BindingGetParams { /** * Identifier */ account_id: string; } export declare namespace Bindings { export import BindingGetResponse = BindingsAPI.BindingGetResponse; export import BindingGetParams = BindingsAPI.BindingGetParams; } //# sourceMappingURL=bindings.d.ts.map