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