🎨 Improved code quality of manifest parser

This commit is contained in:
C-3PO 2018-06-23 21:52:36 +02:00
parent 62ed08c6c3
commit 57c99b88fe
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
3 changed files with 25 additions and 6 deletions

View file

@ -0,0 +1,16 @@
/** A patch manifest, containing a list of releases, how to patch them, and which the current release is. */
export default interface IManifest {
/** Current release. */
current: number;
/** List of releases. */
releases: {
[s: string]: {
/** SHA1 hash of this release. */
sha1: string;
/** List of releases from where we can patch to this release. */
from: number[];
/** List of releases that this release can be patched to. */
to: number[];
};
};
}