From a51d4b3927246be43e4e6f3cb9677c11cc0e0951 Mon Sep 17 00:00:00 2001 From: Dmytro Zelenetskyi Date: Sat, 24 Aug 2024 12:09:31 +0200 Subject: [PATCH] fixing missing types --- apis/figma/src/api/projects.ts | 4 ++-- apis/figma/src/index.ts | 2 +- apis/flickr/src/index.ts | 2 +- bun.lockb | Bin 229088 -> 229088 bytes 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apis/figma/src/api/projects.ts b/apis/figma/src/api/projects.ts index 112a420..2a90406 100644 --- a/apis/figma/src/api/projects.ts +++ b/apis/figma/src/api/projects.ts @@ -11,7 +11,7 @@ import { method, query } from "@zemd/http-client"; * the word team and before your team name. */ export const getTeamProjects = (teamId: string) => { - return [`/v1/teams/${teamId}/projects`, [method("GET")]]; + return { url: `/v1/teams/${teamId}/projects`, transformers: [method("GET")] }; }; const GetProjectFilesQuerySchema = z.object({ @@ -34,5 +34,5 @@ export const getProjectFiles = ( query(GetProjectFilesQuerySchema.passthrough().parse(options)), ); } - return [`/v1/projects/${projectId}/files`, transformers]; + return { url: `/v1/projects/${projectId}/files`, transformers }; }; diff --git a/apis/figma/src/index.ts b/apis/figma/src/index.ts index 8a7a8b1..b1a45c3 100644 --- a/apis/figma/src/index.ts +++ b/apis/figma/src/index.ts @@ -26,7 +26,7 @@ export const figma = ( const build = createBuildEndpointFn({ baseUrl: opts?.url ?? "https://api.figma.com", transformers: [figmaToken(accessToken)], - debug: opts?.debug, + debug: !!opts?.debug, }); return { diff --git a/apis/flickr/src/index.ts b/apis/flickr/src/index.ts index c6044c6..2661f55 100644 --- a/apis/flickr/src/index.ts +++ b/apis/flickr/src/index.ts @@ -11,7 +11,7 @@ export const flickr = ( transformers: [ query({ api_key: apiKey, format: "json", nojsoncallback: 1 }), ], - debug: opts?.debug, + debug: !!opts?.debug, }); return { diff --git a/bun.lockb b/bun.lockb index 3183ad7d4d0ccf507f0991d3ee770fce1b2b8ce5..b64731033e776392c20b677d415bd21827883c88 100755 GIT binary patch delta 60 zcmV-C0K@;_{SDy#4S<9Jv;xDo2LWC(E-)@Nmyo;y9Jl7T0wTqeU?d2aaD4+Pmv1uy SFq60}D3dTG2)CGh14se$brygC delta 61 zcmaFxm-oS6-i8*&Elh{EvokS(!So4xm}Is;+s>qPbb7uq6UTIpT4saE2`U_u8?-g1 P3)C`eY@bof?7;{C!Fv?X