1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/components/release-notes/types.ts
Mike Surowiec a88e99c83a Reactify: release notes (#19799)
* reactify release-notes pages

* update GHAE/ES react release notes to not rely on javascripts/release-notes.js
2021-06-09 20:44:32 +00:00

50 lines
1.1 KiB
TypeScript

export type CurrentVersion = {
plan: string
planTitle: string
versionTitle: string
currentRelease: string
}
export type GHESMessage = {
ghes_release_notes_upgrade_patch_only: string
ghes_release_notes_upgrade_release_only: string
ghes_release_notes_upgrade_patch_and_release: string
}
type ReleaseNoteSection =
| {
heading?: string
notes: Array<string>
}
| string
export type ReleaseNotePatch = {
patchVersion: string
version: string
downloadVersion: string
intro: string
date: string
friendlyDate: string
title: string
release_candidate?: boolean
currentWeek: boolean
sections: Record<string, Array<ReleaseNoteSection>>
}
export type GHAEReleaseNotesContextT = {
releaseNotes: Array<ReleaseNotePatch>
releases: Array<{ version: string; patches: Array<ReleaseNotePatch> }>
currentVersion: CurrentVersion
}
export type GHESReleaseNotesContextT = {
latestPatch: string
prevRelease?: string
nextRelease?: string
latestRelease: string
currentVersion: CurrentVersion
releaseNotes: Array<ReleaseNotePatch>
releases: Array<{ version: string; patches: Array<ReleaseNotePatch> }>
message: GHESMessage
}