Skip to content

Commit 9f7a9d1

Browse files
Fix typecheck because of microsoft/TypeScript#43094
1 parent 965cd03 commit 9f7a9d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/tools/instrumentMethod.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ describe('instrumentSetter', () => {
266266

267267
it('does not use the Zone.js setTimeout function', () => {
268268
const zoneJsSetTimeoutSpy = jasmine.createSpy()
269-
zoneJs.replaceProperty(window, 'setTimeout', zoneJsSetTimeoutSpy)
269+
zoneJs.replaceProperty(window, 'setTimeout', zoneJsSetTimeoutSpy as unknown as typeof window.setTimeout)
270270

271271
const object = {} as { foo: number }
272272
Object.defineProperty(object, 'foo', { set: noop, configurable: true })

packages/rum-core/src/domain/tracing/identifier.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('toPaddedHexadecimalString', () => {
3838
})
3939

4040
function mockRandomValues(cb: (buffer: Uint8Array) => void) {
41-
spyOn(window.crypto, 'getRandomValues').and.callFake((bufferView) => {
41+
spyOn(window.crypto, 'getRandomValues').and.callFake((bufferView: ArrayBufferView) => {
4242
cb(new Uint8Array(bufferView.buffer))
4343
return bufferView
4444
})

0 commit comments

Comments
 (0)