Implement the content types

To use the queried data, you map the content types that you created in Content Hub ONE with corresponding content types in the application.

To implement the content types:

  1. In Visual Studio Code, open the starter kit repository and go to the /types folder.

  2. Create a copy of the Recipe folder and name it Events.

  3. In the Events folder, create two copies of the recipe-type.ts file. The recipe-type.ts file defines the model for the recipe object.

  4. Name these three files speaker-type.ts, talk-type.ts, and event-type.ts.

  5. Open each of the three files and modify them as shown in the following code samples, changing all mentions of recipes to the equivalent mentions of speaker, talk, or event. For each file, ensure the new text matches the case of the original.

Do you have some feedback for us?

If you have suggestions for improving this article,