File tree Expand file tree Collapse file tree
opencode/src/server/routes/instance Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -310,7 +310,10 @@ export const TuiRoutes = lazy(() =>
310310 } ) ,
311311 validator ( "json" , zodObject ( TuiEvent . ToastShow . properties ) ) ,
312312 async ( c ) => {
313- await Bus . publish ( TuiEvent . ToastShow , c . req . valid ( "json" ) as Schema . Schema . Type < typeof TuiEvent . ToastShow . properties > )
313+ await Bus . publish (
314+ TuiEvent . ToastShow ,
315+ c . req . valid ( "json" ) as Schema . Schema . Type < typeof TuiEvent . ToastShow . properties > ,
316+ )
314317 return c . json ( true )
315318 } ,
316319 )
Original file line number Diff line number Diff line change 68046804 },
68056805 "duration" : {
68066806 "description" : " Duration in milliseconds" ,
6807- "default" : 5000 ,
68086807 "type" : " number"
68096808 }
68106809 },
76387637 "type" : " string"
76397638 },
76407639 "event" : {
7641- "anyOf" : [
7642- {
7643- "type" : " string" ,
7644- "const" : " add"
7645- },
7646- {
7647- "type" : " string" ,
7648- "const" : " change"
7649- },
7650- {
7651- "type" : " string" ,
7652- "const" : " unlink"
7653- }
7654- ]
7640+ "type" : " string" ,
7641+ "enum" : [" add" , " change" , " unlink" ]
76557642 }
76567643 },
76577644 "required" : [" file" , " event" ]
85078494 },
85088495 "duration" : {
85098496 "description" : " Duration in milliseconds" ,
8510- "default" : 5000 ,
85118497 "type" : " number"
85128498 }
85138499 },
You can’t perform that action at this time.
0 commit comments