chore: use MappingItem type

This commit is contained in:
Evan You 2023-11-27 14:16:16 +08:00
parent f15d2f6cf6
commit d193666fdc
2 changed files with 2 additions and 8 deletions

View File

@ -218,6 +218,7 @@ function createCodegenContext(
generatedLine: context.line,
generatedColumn: context.column - 1,
source: filename,
// @ts-ignore it is possible to be null
name
})
}

View File

@ -50,14 +50,7 @@ declare module 'source-map-js' {
toJSON(): RawSourceMap
_names: Set<string>
_mappings: {
add(mapping: {
originalLine: number
originalColumn: number
generatedLine: number
generatedColumn: number
source: string
name: string | null
}): void
add(mapping: MappingItem): void
}
}
}