Skip to content

Commit

Permalink
🛠️: use Citation type in Citation/services
Browse files Browse the repository at this point in the history
  • Loading branch information
itisAliRH committed Feb 16, 2024
1 parent e394572 commit a16de7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/Citation/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import axios from "axios";
import { getAppRoot } from "@/onload/loadConfig";
import { rethrowSimple } from "@/utils/simple-error";

export async function getCitations(source: string, id: string) {
import { type Citation } from ".";

export async function getCitations(source: string, id: string): Promise<Citation[]> {
try {
const request = await axios.get(`${getAppRoot()}api/${source}/${id}/citations`);
const rawCitations = request.data;
Expand Down

0 comments on commit a16de7b

Please sign in to comment.