From 4c905b6112b34912a876f894ba94e238445e9ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicole=20Miko=C5=82ajczyk?= Date: Tue, 27 May 2025 21:01:56 +0200 Subject: [PATCH] pl-api: actually fix typo lmao MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicole Mikołajczyk --- packages/pl-api/lib/client.ts | 6 +++--- packages/pl-api/lib/entities/terms-of-service.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/pl-api/lib/client.ts b/packages/pl-api/lib/client.ts index 0a1d75c8c..69c73d9e3 100644 --- a/packages/pl-api/lib/client.ts +++ b/packages/pl-api/lib/client.ts @@ -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); }, }; diff --git a/packages/pl-api/lib/entities/terms-of-service.ts b/packages/pl-api/lib/entities/terms-of-service.ts index 169d29e97..83c8660e3 100644 --- a/packages/pl-api/lib/entities/terms-of-service.ts +++ b/packages/pl-api/lib/entities/terms-of-service.ts @@ -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; +type TermsOfService = v.InferOutput; -export { termfsOfServiceSchema, type TermfsOfService }; +export { termsOfServiceSchema, type TermsOfService };