UNPKG

tsgen-lib

Version:
32 lines (29 loc) 740 B
// src/mainFunction.ts import ContentstackAppSdk from "@contentstack/app-sdk"; // src/innerFunction.ts var innerHelloFunction = () => { return "Hello"; }; // src/mainFunction.ts var sayHello = (firstName, lastName) => { const innerFunctionValue = innerHelloFunction(); console.log(`${innerFunctionValue} ${firstName} ${lastName}`); }; var sayBye = () => { console.log("Bye"); }; var getContentTypes = async () => { try { const appSdk = await ContentstackAppSdk.init(); const data = await (appSdk == null ? void 0 : appSdk.stack.getContentTypes()); return data; } catch (error) { console.error("Error fetching content types:", error); throw error; } }; export { getContentTypes, sayBye, sayHello };