Skip to content

Commit

Permalink
fix: removed extensions from imports
Browse files Browse the repository at this point in the history
  • Loading branch information
George-Madeley committed Aug 4, 2024
1 parent 3380daf commit 6de244a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/VectorOfflineLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {
TileResponseFulfilled,
TileResponseRejected,
VectorLayerOptions,
} from "./types.ts";
import { getTileImageSource, reflect, timer } from "./utils.ts";
import { Theme, themes } from "./themes.ts";
} from "./types";
import { getTileImageSource, reflect, timer } from "./utils";
import { Theme, themes } from "./themes";

import { Bounds, Coords, DoneCallback, Point } from "leaflet";
import { getTilePoints, getTileUrl, TileInfo } from "leaflet.offline";
Expand Down
7 changes: 2 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
export {
vectorOfflineLayer,
VectorOfflineLayer,
} from "./VectorOfflineLayer.ts";
export { vectorOfflineLayer, VectorOfflineLayer } from "./VectorOfflineLayer";
export type {
Status,
DoneCallback,
KeyedHtmlCanvasElement,
VectorLayerOptions,
} from "./types.ts";
} from "./types";
2 changes: 1 addition & 1 deletion src/themes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ThemeName } from "./types.ts";
import { ThemeName } from "./types";

export interface Theme {
background: string;
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getBlobByKey, hasTile } from "leaflet.offline";
import { Status, StatusFulfilled, StatusRejected } from "./types.ts";
import { Status, StatusFulfilled, StatusRejected } from "./types";

export const reflect = (
promise: Promise<Status>
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
"allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
Expand All @@ -55,9 +55,9 @@
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
"outDir": "dist", /* Specify an output folder for all emitted files. */
"outDir": "dist", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
"noEmit": true, /* Disable emitting files from a compilation. */
// "noEmit": true, /* Disable emitting files from a compilation. */
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
Expand Down

0 comments on commit 6de244a

Please sign in to comment.