Skip to content

Commit ebeff4f

Browse files
committed
drop location from Migration type
1 parent e874a5e commit ebeff4f

File tree

1 file changed

+1
-6
lines changed
  • packages/@tailwindcss-upgrade/src/codemods/template

1 file changed

+1
-6
lines changed

packages/@tailwindcss-upgrade/src/codemods/template/migrate.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ export type Migration = (
3030
designSystem: DesignSystem,
3131
userConfig: Config | null,
3232
rawCandidate: string,
33-
location?: {
34-
contents: string
35-
start: number
36-
end: number
37-
},
3833
) => string | Promise<string>
3934

4035
export const DEFAULT_MIGRATIONS: Migration[] = [
@@ -66,7 +61,7 @@ let migrateCached = new DefaultMap<
6661
return new DefaultMap((userConfig) => {
6762
return new DefaultMap(async (rawCandidate) => {
6863
for (let migration of DEFAULT_MIGRATIONS) {
69-
rawCandidate = await migration(designSystem, userConfig, rawCandidate, undefined)
64+
rawCandidate = await migration(designSystem, userConfig, rawCandidate)
7065
}
7166
return rawCandidate
7267
})

0 commit comments

Comments
 (0)