kopia lustrzana https://github.com/badgen/badgen.net
chore: fix type error
rodzic
3b14745ddb
commit
36513b3a3f
|
@ -20,11 +20,11 @@ async function handler ({ topic, slug }: PathArgs) {
|
|||
const endpoint = `https://liberapay.com/${slug}/public.json`
|
||||
|
||||
const details = await got(endpoint).json<any>()
|
||||
const receivingLocaleOptions = {
|
||||
const receivingLocaleOptions: Intl.NumberFormatOptions = {
|
||||
style: 'currency',
|
||||
currency: details.giving.currency
|
||||
}
|
||||
const givingLocaleOptions = {
|
||||
const givingLocaleOptions: Intl.NumberFormatOptions = {
|
||||
style: 'currency',
|
||||
currency: details.receiving.currency
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue