UNPKG

mapbox-gl

Version:
29 lines (22 loc) 562 B
// @flow export type ResolvedImageOptions = { name: string, available: boolean }; export default class ResolvedImage { name: string; available: boolean; constructor(options: ResolvedImageOptions) { this.name = options.name; this.available = options.available; } toString(): string { return this.name; } static fromString(name: string): ResolvedImage { return new ResolvedImage({name, available: false}); } serialize(): Array<string> { return ["image", this.name]; } }