TypeScript Use “ZOD” to define the data type of response from AJAX in Typescript Although you can use the inter …