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
Mon, Dec 23, 22:13 (23 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
555164
Default Alt Text
manifest.ts (812 B)

Event Timeline