From: Evan You Date: Mon, 27 Nov 2023 06:16:16 +0000 (+0800) Subject: chore: use MappingItem type X-Git-Tag: v3.4.0-alpha.2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d193666fdc9be3e0e3ccf4c0c248f2684db482f2;p=thirdparty%2Fvuejs%2Fcore.git chore: use MappingItem type --- diff --git a/packages/compiler-core/src/codegen.ts b/packages/compiler-core/src/codegen.ts index ea53640f3b..12a1bcd487 100644 --- a/packages/compiler-core/src/codegen.ts +++ b/packages/compiler-core/src/codegen.ts @@ -218,6 +218,7 @@ function createCodegenContext( generatedLine: context.line, generatedColumn: context.column - 1, source: filename, + // @ts-ignore it is possible to be null name }) } diff --git a/packages/global.d.ts b/packages/global.d.ts index 64699ae775..70b9d158b2 100644 --- a/packages/global.d.ts +++ b/packages/global.d.ts @@ -50,14 +50,7 @@ declare module 'source-map-js' { toJSON(): RawSourceMap _names: Set _mappings: { - add(mapping: { - originalLine: number - originalColumn: number - generatedLine: number - generatedColumn: number - source: string - name: string | null - }): void + add(mapping: MappingItem): void } } }