File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ defineOptions({
113113 name: ' SigningMode' ,
114114})
115115
116+ type SigningModeState = ' sync' | ' async'
117+ type WorkerTypeState = ' local' | ' external'
118+
116119const asyncEnabled = ref (false )
117120const externalWorkerEnabled = ref (false )
118121const parallelWorkersCount = ref (' 4' )
@@ -131,10 +134,10 @@ function showSavedIndicator() {
131134
132135function loadConfig() {
133136 try {
134- const mode = loadState (' libresign' , ' signing_mode' , ' sync' )
137+ const mode = loadState (' libresign' , ' signing_mode' , ' sync' ) as SigningModeState
135138 asyncEnabled .value = mode === ' async'
136139
137- const workerType = loadState (' libresign' , ' worker_type' , ' local' )
140+ const workerType = loadState (' libresign' , ' worker_type' , ' local' ) as WorkerTypeState
138141 externalWorkerEnabled .value = workerType === ' external'
139142
140143 const parallelWorkers = loadState (' libresign' , ' parallel_workers' , ' 4' )
You can’t perform that action at this time.
0 commit comments