From ef3456199c4bea90695ec1fcbcd8ce3503207735 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 1 Dec 2021 22:52:09 +0530 Subject: [PATCH] Fix formatting --- doc/TS-MIGRATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/TS-MIGRATION.md b/doc/TS-MIGRATION.md index 82e88a89..a7342ba8 100644 --- a/doc/TS-MIGRATION.md +++ b/doc/TS-MIGRATION.md @@ -10,4 +10,4 @@ Also see [this playground](https://www.typescriptlang.org/play?#code/C4TwDgpgBAC ## Use `Record` to describe a type that accepts any Javascript object. -Record allows us to avoid passing in primitive types and prevents type errors when accessing properties. As this is a temporary type while converting javascript, it seems best to not add any additional requirements. If any errors occur, they must have already been present, and we should fix it by adding proper types. So prefer `Record` over `[key: string]: any`, `any` or `object`. +`Record` allows us to avoid passing in primitive types and prevents type errors when accessing properties. As this is a temporary type while converting javascript, it seems best to not add any additional requirements. If any errors occur, they must have already been present, and we should fix it by adding proper types. So prefer `Record` over `[key: string]: any`, `any` or `object`.