ES6 JavaScript Типы возврата
const testFunc = (param: string): Record<string, unknown> => {
// this should return an object
}
// if its an async function
const testFunc = async (param: string): Promise<your type> => {
// this should return your type
}
TP