Refine a bit TS example
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 24 Oct 2022 14:14:38 +0000 (16:14 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 24 Oct 2022 14:14:38 +0000 (16:14 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
examples/typescript/worker.ts

index 143bdab127dbfb334f5545518c1a160c1683dc47..adc8c4345ca1ead79eec6d31507e7fc07e53f7af 100644 (file)
@@ -1,7 +1,7 @@
 import { ThreadWorker } from 'poolifier'
 
 export interface MyData {
-  ok: number
+  ok: 0 | 1
 }
 
 export interface MyResponse {