@@ -2412,18 +2412,18 @@ global.setFooter = (footer: string) => {
24122412 global . send ( Channel . SET_FOOTER , footer )
24132413}
24142414
2415- global . setDiv = async ( h , containerClasses = "" ) => {
2415+ global . setDiv = ( h , containerClasses = "" ) => {
24162416 let html = maybeWrapHtml ( h , containerClasses )
24172417 global . send ( Channel . SET_PANEL , html )
24182418}
24192419
2420- global . setPreview = async ( h , containerClasses = "" ) => {
2420+ global . setPreview = ( h , containerClasses = "" ) => {
24212421 let html = maybeWrapHtml ( h , containerClasses )
24222422 global . send ( Channel . SET_PREVIEW , html )
24232423 // setLoading(false)
24242424}
24252425
2426- global . setHint = async hint => {
2426+ global . setHint = hint => {
24272427 global . send ( Channel . SET_HINT , hint )
24282428}
24292429
@@ -2445,8 +2445,8 @@ global.scrollTo = async location => {
24452445 return await global . sendWait ( Channel . SCROLL_TO , location )
24462446}
24472447
2448- global . setFilterInput = async inputFilter => {
2449- global . send ( Channel . SET_FILTER_INPUT , inputFilter )
2448+ global . setFilterInput = inputFilter => {
2449+ return global . sendWait ( Channel . SET_FILTER_INPUT , inputFilter )
24502450}
24512451
24522452global . showDeprecated = async ( markdown : string ) => {
@@ -2461,15 +2461,15 @@ All prompts now ignore blur by default
24612461 ` )
24622462}
24632463
2464- global . setResize = async ignore => {
2464+ global . setResize = ignore => {
24652465 global . send ( Channel . SET_RESIZE , ignore )
24662466}
24672467
24682468global . setPauseResize = async pause => {
24692469 await global . sendWait ( Channel . SET_PAUSE_RESIZE , pause )
24702470}
24712471
2472- global . setValue = async value => {
2472+ global . setValue = value => {
24732473 global . send ( Channel . SET_VALUE , value )
24742474}
24752475
@@ -2485,7 +2485,7 @@ global.getDataFromApp = global.sendWait = async (
24852485) => {
24862486 if ( process ?. send ) {
24872487 return await new Promise ( ( res , rej ) => {
2488- let timeoutId = null
2488+ let timeoutId : NodeJS . Timeout | null = null
24892489 let messageHandler = data => {
24902490 // if (data?.promptId !== global.__kitPromptId) {
24912491 // log(
@@ -3497,7 +3497,7 @@ global.prompt = {
34973497 openActions : async ( ) => {
34983498 return await sendWait ( Channel . OPEN_ACTIONS )
34993499 } ,
3500- close : async ( ) => {
3500+ close : ( ) => {
35013501 return exit ( )
35023502 } ,
35033503 setInput : ( input : string ) => {
0 commit comments