We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1f6930 commit b50a5a2Copy full SHA for b50a5a2
mandelbrot/assembly/index.ts
@@ -51,6 +51,6 @@ export function computeLine(y: u32, width: u32, height: u32, limit: u32): void {
51
52
/** Clamps a value between the given minimum and maximum. */
53
@inline
54
-function clamp<T>(value: T, minValue: T, maxValue: T): T {
+function clamp<T extends number>(value: T, minValue: T, maxValue: T): T {
55
return min(max(value, minValue), maxValue);
56
}
0 commit comments