Skip to content

Commit

Permalink
style: fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Oct 19, 2024
1 parent 3389176 commit 7ad70d6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion javascript/components/HeadingIndicator.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { ReactElement } from "react";

import SymbolLayer from "./SymbolLayer";
// @ts-ignore
import headingIcon from "../../assets/heading.png";
import BaseProps from "../types/BaseProps";

Expand Down
1 change: 1 addition & 0 deletions javascript/types/png.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "*.png";
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Feature } from "@turf/helpers/dist/js";
import React, { FC, useState, ReactElement } from "react";
import { View, Text, ViewStyle, StyleProp, TextStyle } from "react-native";

// @ts-ignore
import exampleIcon from "../../assets/pin.png";
import sheet from "../../styles/sheet";
import Page from "../common/Page";
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/examples/Map/ShowMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ShowMap = (): ReactElement => {

const onMapChange = (
index: number,
newStyleURL: MapLibreGL.StyleURL,
newStyleURL: typeof MapLibreGL.StyleURL,
): void => {
setStyleURL({ styleURL: newStyleURL });
};
Expand Down
1 change: 1 addition & 0 deletions packages/examples/src/types/png.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "*.png";

0 comments on commit 7ad70d6

Please sign in to comment.