🎨 Improved code quality of manifest parser
This commit is contained in:
parent
62ed08c6c3
commit
57c99b88fe
3 changed files with 25 additions and 6 deletions
16
src/interfaces/IManifest.ts
Normal file
16
src/interfaces/IManifest.ts
Normal 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[];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue