pl-api: actually fix typo lmao

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-05-27 21:01:56 +02:00
parent 9f494f8297
commit 4c905b6112
2 changed files with 6 additions and 6 deletions

View File

@ -82,7 +82,7 @@ import {
subscriptionOptionSchema,
suggestionSchema,
tagSchema,
termfsOfServiceSchema,
termsOfServiceSchema,
tokenSchema,
translationSchema,
trendsLinkSchema,
@ -3649,7 +3649,7 @@ class PlApiClient {
getInstanceTermsOfService: async () => {
const response = await this.request('/api/v1/instance/terms_of_service');
return v.parse(termfsOfServiceSchema, response.json);
return v.parse(termsOfServiceSchema, response.json);
},
/**
@ -3660,7 +3660,7 @@ class PlApiClient {
getInstanceTermsOfServiceForDate: async (date: string) => {
const response = await this.request(`/api/v1/instance/terms_of_service/${date}`);
return v.parse(termfsOfServiceSchema, response.json);
return v.parse(termsOfServiceSchema, response.json);
},
};

View File

@ -6,7 +6,7 @@ import { dateSchema } from './utils';
* @category Schemas
* @see {@link https://docs.joinmastodon.org/entities/TermsOfService/}
*/
const termfsOfServiceSchema = v.object({
const termsOfServiceSchema = v.object({
effective_date: dateSchema,
effective: v.boolean(),
content: v.string(),
@ -16,6 +16,6 @@ const termfsOfServiceSchema = v.object({
/**
* @category Entity types
*/
type TermfsOfService = v.InferOutput<typeof termfsOfServiceSchema>;
type TermsOfService = v.InferOutput<typeof termsOfServiceSchema>;
export { termfsOfServiceSchema, type TermfsOfService };
export { termsOfServiceSchema, type TermsOfService };