]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: use MappingItem type
authorEvan You <yyx990803@gmail.com>
Mon, 27 Nov 2023 06:16:16 +0000 (14:16 +0800)
committerEvan You <yyx990803@gmail.com>
Mon, 27 Nov 2023 06:16:16 +0000 (14:16 +0800)
packages/compiler-core/src/codegen.ts
packages/global.d.ts

index ea53640f3ba32ed977cc5a7fcb139261b26d22d8..12a1bcd487d5831e6e524cf18fc57c13b54f03a4 100644 (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
     })
   }
index 64699ae775965fc09e285400cfbd795ba9c576a8..70b9d158b2cdebecc0a40914dc99cad7cf3a7f58 100644 (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
     }
   }
 }