MCPcopy Create free account
hub / github.com/decaporg/decap-cms / constructor

Method constructor

packages/decap/src/api.ts:29–33  ·  view source on GitHub ↗
(apiUrl: string, token: string | null, client: ClientKind = 'cli')

Source from the content-addressed store, hash-verified

27 readonly client: ClientKind;
28
29 constructor(apiUrl: string, token: string | null, client: ClientKind = 'cli') {
30 this.apiUrl = apiUrl;
31 this.token = token;
32 this.client = client;
33 }
34
35 async call<T>(op: Operation, input: Record<string, unknown> = {}): Promise<T> {
36 if (op.auth === 'token' && !this.token) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected