Page MenuHomeSealhub

manifest.ts
No OneTemporary

manifest.ts

import * as assert from "assert";
export interface ManifestData {
name: string;
logo: string;
version: string;
default_language: string;
base_url: string;
admin_email: string;
colors: { primary: string };
}
export default class Manifest implements ManifestData {
name: string;
logo: string;
version: string;
default_language: string;
base_url: string;
admin_email: string;
colors: { primary: string };
constructor(public data: ManifestData) {
Object.assign(this, data);
}
validate() {
assert.ok(this.data, "Please provide the app manifest");
[
"name",
"logo",
"version",
"default_language",
"base_url",
"admin_email",
].forEach((key: keyof ManifestData) => {
assert.ok(
this.data[key],
`Please specify '${key}' field in the app manifest`
);
});
}
}

File Metadata

Mime Type
text/x-java
Expires
Tue, Dec 24, 08:47 (22 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
555164
Default Alt Text
manifest.ts (812 B)

Event Timeline