mirror of https://github.com/vuejs/core.git
chore: use MappingItem type
This commit is contained in:
parent
f15d2f6cf6
commit
d193666fdc
|
|
@ -218,6 +218,7 @@ function createCodegenContext(
|
|||
generatedLine: context.line,
|
||||
generatedColumn: context.column - 1,
|
||||
source: filename,
|
||||
// @ts-ignore it is possible to be null
|
||||
name
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue