cloudflare
Version:
The official TypeScript library for the Cloudflare API
17 lines (13 loc) • 558 B
text/typescript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { BaseCloudflare } from '../client';
export abstract class APIResource {
/**
* The key path from the client. For example, a resource accessible as `client.resource.subresource` would
* have a property `static override readonly _key = Object.freeze(['resource', 'subresource'] as const);`.
*/
static readonly _key: readonly string[] = [];
protected _client: BaseCloudflare;
constructor(client: BaseCloudflare) {
this._client = client;
}
}