From 4272ccb898fd7f2e7de735b8a8dc537da8ec2162 Mon Sep 17 00:00:00 2001 From: Evorp <3vorpgaming@gmail.com> Date: Wed, 9 Oct 2024 21:00:30 -0700 Subject: [PATCH] fix changelog validation (idk either) --- src/v2/interfaces/posts.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/v2/interfaces/posts.ts b/src/v2/interfaces/posts.ts index 0a9bba4..5e18abb 100644 --- a/src/v2/interfaces/posts.ts +++ b/src/v2/interfaces/posts.ts @@ -4,11 +4,14 @@ export type PostDownload = | Record> // each category: names -> links | Record; // just names -> links -export interface PostChangelog { - // recursive type so we need an interface (idk why either blame typescript) - [key: string]: PostChangelog | string; +interface NestedChangelog { + // recursive type (can be arbitrarily grouped) + [key: string]: NestedChangelog | string | string[]; } +// workaround for index signatures not being supported by validation +export type PostChangelog = Record; + export interface CreateWebsitePost { title: string; // Post main title permalink: string; // link to the post