Skip to content

Instantly share code, notes, and snippets.

View mridul-netizen's full-sized avatar
🖱️

mridul-netizen mridul-netizen

🖱️
View GitHub Profile
@mridul-netizen
mridul-netizen / issue.md
Created August 29, 2021 18:43
Issue- Making typechecks strict

Currently, in our tsconfig.json we don't have strict rule enabled. But as per discussion in #10327 we have decided to enable this rule. We can't do this at once because of a huge number of errors. So, we've decided to do it gradually file by file. For reference on what does strict rule do you can look for --strict here.

  • You can once go through this guide for getting started with types.

  • This guide covers most of the cases encountered in our codebase which throws strict typing errors, along with their solution.

To be assigned to a file or for any queries feel free to comment on the thread.

Steps to fix this issue

@mridul-netizen
mridul-netizen / gist:e732dfeae3b1201cdbbb23377467a6bd
Last active August 21, 2021 18:23
This gist contains all of my work done during Milestones 1 and 2 of GSoC peroid.

Google Summer Of Code 2021(oppia)

Oppia is an online learning tool that enables anyone to easily create and share interactive activities (called 'explorations'). These activities simulate a one-on-one conversation with a tutor, making it possible for students to learn by doing while getting feedback.

About the project

Oppia uses Angular as it's frontend framework. TypeScript used in Angular provides the project with a compiler option called strict. This turns on a set of type checking rules and is referred to as strict mode.

Why Enable Strict Mode?

This is because code that passes these checks has several benefits:

  • The code becomes more self-documenting