mirror of
https://github.com/maputnik/editor.git
synced 2026-06-16 04:07:27 +00:00
Migration of jsx files to tsx 3 (#851)
This is in continue to: - #850 - #848 The last files should be converted as part of this PR, there are only a handful left.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type {StyleSpecification} from "@maplibre/maplibre-gl-style-spec";
|
||||
import type {StyleSpecification} from "maplibre-gl";
|
||||
|
||||
export class RevisionStore {
|
||||
revisions: StyleSpecification[];
|
||||
revisions: (StyleSpecification & {id: string})[];
|
||||
currentIdx: number;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ export class RevisionStore {
|
||||
return this.revisions[this.currentIdx]
|
||||
}
|
||||
|
||||
addRevision(revision: StyleSpecification) {
|
||||
addRevision(revision: StyleSpecification & {id: string}) {
|
||||
//TODO: compare new revision style id with old ones
|
||||
//and ensure that it is always the same id
|
||||
this.revisions.push(revision)
|
||||
|
||||
Reference in New Issue
Block a user