Skip to content

Commit

Permalink
refactor: allow helper to accept strings
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin committed Mar 7, 2025
1 parent b631270 commit 570498b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/helper/TilesHelper.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MapStyle, TilesHelperInterface, TilesObject } from "./TilesHelperInterface";

export class TilesHelper implements TilesHelperInterface {
public getDefaultTiles(style: MapStyle): TilesObject {
public getDefaultTiles(style: string): TilesObject {
switch (style) {
case 'dark':
return {
Expand Down
2 changes: 1 addition & 1 deletion js/helper/TilesHelperInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export type TilesObject = {
}

export interface TilesHelperInterface {
getDefaultTiles(style: MapStyle): TilesObject
getDefaultTiles(style: string): TilesObject
}

0 comments on commit 570498b

Please sign in to comment.