44
55// --- api ---
66import * as Utils from "@/api/utils"
7- import type { BlobResponse } from "@/api/utils"
8- import type { UUID } from "@/types/corpora"
7+ import type { BlobResponse } from "@/api/utils"
8+ import type { UUID } from "@/types/corpora"
99import type {
1010 ConfusionWrapper ,
1111 DistributionWrapper ,
@@ -15,7 +15,7 @@ import type {
1515// --- libraries ---
1616import axios from "axios"
1717// --- types ---
18- import type { AxiosResponse } from "axios"
18+ import type { AxiosResponse } from "axios"
1919
2020type ConfusionResponse = AxiosResponse < ConfusionWrapper >
2121type DistributionResponse = AxiosResponse < DistributionWrapper >
@@ -67,7 +67,7 @@ export function getConfusion(
6767 reference : string ,
6868) : Promise < ConfusionResponse > {
6969 return axios . get ( confusionPath ( corpus , hypothesis ) , {
70- params : { reference} ,
70+ params : { reference } ,
7171 } )
7272}
7373
@@ -82,7 +82,7 @@ export function getMetrics(
8282 hypothesis : string ,
8383 reference : string ,
8484) : Promise < MetricsResponse > {
85- return axios . get ( metricsPath ( corpus , hypothesis ) , { params : { reference} } )
85+ return axios . get ( metricsPath ( corpus , hypothesis ) , { params : { reference } } )
8686}
8787
8888/**
@@ -97,7 +97,7 @@ export function getDownloadEvaluation(
9797 reference : string ,
9898) : Promise < BlobResponse > {
9999 return Utils . getBlob ( downloadPath ( corpus , hypothesis ) , {
100- params : { reference} ,
100+ params : { reference } ,
101101 } )
102102}
103103
@@ -118,7 +118,7 @@ export function getConfusionSamples(
118118 annotationType : string ,
119119) : Promise < BlobResponse > {
120120 return Utils . getBlob ( confusionSamplesPath ( corpus , hypothesis ) , {
121- params : { reference, hypoFilter, refFilter, annotationType} ,
121+ params : { reference, hypoFilter, refFilter, annotationType } ,
122122 } )
123123}
124124
@@ -147,7 +147,7 @@ export function getMetricsSamples(
147147 if ( group ) {
148148 params . group = group
149149 }
150- return Utils . getBlob ( metricsSamplesPath ( corpus , hypothesis ) , { params} )
150+ return Utils . getBlob ( metricsSamplesPath ( corpus , hypothesis ) , { params } )
151151}
152152
153153/**
@@ -165,6 +165,6 @@ export function getDocumentLayerComparison(
165165 reference : string ,
166166) : Promise < AxiosResponse < TermComparison [ ] > > {
167167 return axios . get ( documentLayerComparisonPath ( corpus , job , document ) , {
168- params : { reference} ,
168+ params : { reference } ,
169169 } )
170170}
0 commit comments