Skip to content

Commit

Permalink
fix changelog validation (idk either)
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 10, 2024
1 parent 82ea82c commit 4272ccb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/v2/interfaces/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ export type PostDownload =
| Record<string, Record<string, string>> // each category: names -> links
| Record<string, string>; // 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<string, NestedChangelog>;

export interface CreateWebsitePost {
title: string; // Post main title
permalink: string; // link to the post
Expand Down

0 comments on commit 4272ccb

Please sign in to comment.