Skip to content

Commit d9fd4af

Browse files
committed
refactor: convert sequential.js to TypeScript
Fixes #661 (partial - 1 file) - Renamed sequential.js to sequential.ts - Added TypeScript type annotation to changeClockEnable parameter (val: boolean) - Added return type annotation (void) - No logic changes, only type safety improvements
1 parent 15f0d4a commit d9fd4af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { scheduleUpdate, play, updateCanvasSet } from './engine'
21
import { simulationArea } from './simulationArea'
32

43
/**
54
* a global function as a helper for simulationArea.changeClockEnable
65
* @category sequential
6+
* @param val - boolean value to enable/disable clock
77
*/
8-
export function changeClockEnable(val) {
8+
export function changeClockEnable(val: boolean): void {
99
simulationArea.clockEnabled = val
1010
}

0 commit comments

Comments
 (0)