W
Wasp4d ago
isaiah

About Wasp TypeScript config

Noob question. In Wasp TS, when you declare an App: const app = new App('todoApp', { title: 'ToDo App', wasp: { version: '^0.16.0' }, // head: [] }); Why do you need to declare todoApp as a name for App then another time as the title?
2 Replies
kapa.ai
kapa.ai4d ago
Hi @isaiah. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I apologize, but I don't have accurate information in the provided knowledge sources to answer your question about Wasp TypeScript config. The knowledge sources primarily contain information about the Wasp DSL (Domain Specific Language) syntax and do not mention a TypeScript-based configuration using new App() as you've described. The Wasp configuration shown in the knowledge sources uses a different syntax, typically defined in a main.wasp file, like this:
app TodoApp {
wasp: {
version: "^0.13.0"
},
title: "TodoApp"
}
app TodoApp {
wasp: {
version: "^0.13.0"
},
title: "TodoApp"
}
In this syntax, "TodoApp" is the app's identifier, and "TodoApp" in the title field is the actual title that appears in the browser tab. If you're using a TypeScript-based configuration for Wasp, it might be part of a newer version or a different approach not covered in the provided knowledge sources. For the most up-to-date and accurate information, I recommend checking the official Wasp documentation or reaching out to the Wasp community for clarification on this specific TypeScript usage. Wasp Language (.wasp) provides information about the standard Wasp DSL syntax, which differs from the TypeScript example you've provided. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @isaiah, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
isaiah
isaiahOP4d ago
Oh wait nvm. I got confused by the constant context switching. This one's good.

Did you find this page helpful?