Skip to content

Commit 7046af0

Browse files
committed
fix lint/types
1 parent b62ceaf commit 7046af0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/transformers/js/src/JSTransformer.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import type {
33
JSONObject,
44
EnvMap,
5-
Location,
65
SourceLocation,
76
FilePath,
87
FileCreateInvalidation,
@@ -166,7 +165,11 @@ type MacroAsset = {|
166165
// NOTE: Make sure this is in sync with the TypeScript definition in the @parcel/macros package.
167166
type MacroContext = {|
168167
addAsset(asset: MacroAsset): void,
169-
loc: Location,
168+
loc: {|
169+
+filePath: string,
170+
+line: number,
171+
+col: number,
172+
|},
170173
invalidateOnFileChange(FilePath): void,
171174
invalidateOnFileCreate(FileCreateInvalidation): void,
172175
invalidateOnEnvChange(string): void,

0 commit comments

Comments
 (0)