Skip to content

Commit

Permalink
fixing missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
zemd committed Aug 24, 2024
1 parent 96c895b commit a51d4b3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apis/figma/src/api/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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 };
};
2 changes: 1 addition & 1 deletion apis/figma/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion apis/flickr/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const flickr = (
transformers: [
query({ api_key: apiKey, format: "json", nojsoncallback: 1 }),
],
debug: opts?.debug,
debug: !!opts?.debug,
});

return {
Expand Down
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit a51d4b3

Please sign in to comment.