Skip to content

Commit 709c05c

Browse files
authored
fix: TypeScript warning (#1281)
1 parent c2f044d commit 709c05c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

rollup.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ function transpileFiles(format, input, outDir) {
4646
typescript({
4747
outDir,
4848
tsconfig: './tsconfig.build.json',
49+
noEmitOnError: true,
4950
}),
5051
format === 'esm' ? modulePackageJson : {},
5152
],
@@ -64,6 +65,7 @@ function bundlePreload(format, input, output) {
6465
plugins: [
6566
typescript({
6667
tsconfig: './tsconfig.preload.json',
68+
noEmitOnError: true,
6769
}),
6870
],
6971
external,

src/main/ipc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function handleMetricFromRenderer(
230230
metric: SerializedMetric,
231231
contents: WebContents | undefined,
232232
): void {
233-
metric.attributes = handleAttributes(client, options, contents, metric.attributes);
233+
metric.attributes = handleAttributes(client, options, contents, metric.attributes) as SerializedMetric['attributes'];
234234
_INTERNAL_captureSerializedMetric(client, metric);
235235
}
236236

0 commit comments

Comments
 (0)