How to get result from async function within synchronous function in typescript?

后端 未结 0 585
挽巷
挽巷 2020-12-19 20:14

Background: I need to use the result from asynchronous function getHolidaysByYear within sync function isHoliday, because of sync function is a par

相关标签:
回答
  • 消灭零回复
提交回复
热议问题