The Complete Strapi™ Course with Plugins and Deployment - How to Use Typescript (Optional)

The Complete Strapi™ Course with Plugins and Deployment - How to Use Typescript (Optional)

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

This lesson covers how to bootstrap a new Strapy project with TypeScript and convert an existing JavaScript-based Strapy project to TypeScript. It explains the benefits of using TypeScript, such as its typing system, and provides step-by-step instructions for both initializing a new project and converting an existing one. The lesson also highlights the importance of the tsconfig.json file and how to handle database configurations when using TypeScript. Although the course primarily uses JavaScript, this lesson offers resources for those who prefer TypeScript.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why does the instructor choose to use JavaScript instead of TypeScript throughout the course?

JavaScript has more features than TypeScript.

TypeScript is not supported by Strapy.

JavaScript is faster than TypeScript.

JavaScript is more widely known among developers.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to initialize a Strapy project with TypeScript using yarn?

yarn new strapy --typescript

yarn init strapy --ts

yarn create app --quickstart --typescript

yarn create strapy-app --typescript

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What file is essential to add when converting a Strapy project to TypeScript?

package.json

tsconfig.json

webpack.config.js

babel.config.js

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it necessary to modify the database configuration file when converting to TypeScript?

To update the database credentials.

To change the database type.

To adjust the file path due to the creation of a Dist subdirectory.

To enable TypeScript support for the database.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'allowJS' option in the tsconfig.json file?

To disable JavaScript support in the project.

To convert all JavaScript files to TypeScript automatically.

To allow only TypeScript files in the project.

To enable JavaScript files to be used alongside TypeScript.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key benefit of using TypeScript in a Strapy project?

It reduces the size of the project.

It eliminates the need for a database.

It provides a strongly typed experience.

It makes the project run faster.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where can you find more information on using TypeScript with Strapy?

In the instructor's personal blog.

In the Strapy TypeScript documentation linked in the lesson resources.

In the Strapy community forum.

In the course's main textbook.