Skip to content

Commit 7286cf2

Browse files
authored
Update resizeCanvas function parameter type
1 parent 3068f6d commit 7286cf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/webgpu/src/WebGPUViewNativeComponent.web.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function debounce<T extends (...args: any[]) => void>(
3838
};
3939
}
4040

41-
function resizeCanvas(canvas?: HTMLCanvasElement) {
41+
function resizeCanvas(canvas: HTMLCanvasElement | null) {
4242
if (!canvas) {
4343
return;
4444
}

0 commit comments

Comments
 (0)