From f62b51e26ea4d4bb1d89ed4db3d60fba1efd77f2 Mon Sep 17 00:00:00 2001 From: Hitesh <46933160+hiteshvijayhv@users.noreply.github.com> Date: Mon, 30 Jan 2023 19:18:14 +0530 Subject: [PATCH 1/2] Docs: fix code examples --- packages/documentation/copy/en/reference/Modules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/reference/Modules.md b/packages/documentation/copy/en/reference/Modules.md index 501e740eb423..56f93fdb57c3 100644 --- a/packages/documentation/copy/en/reference/Modules.md +++ b/packages/documentation/copy/en/reference/Modules.md @@ -261,7 +261,7 @@ TypeScript supports `export =` to model the traditional CommonJS and AMD workflo The `export =` syntax specifies a single object that is exported from the module. This can be a class, interface, namespace, function, or enum. -When exporting a module using `export =`, TypeScript-specific `import module = require("module")` must be used to import the module. +The modules exported by using `export =` can be imported by either of the following ways such as `import module = require(“module”)` or `import module from “./module”` and `import * as module from “./module”`. ##### ZipCodeValidator.ts From 310c7ab54e27d834ac5ce861376ee3859013a225 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Mon, 24 Jul 2023 14:20:32 -0700 Subject: [PATCH 2/2] Update packages/documentation/copy/en/reference/Modules.md --- packages/documentation/copy/en/reference/Modules.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/documentation/copy/en/reference/Modules.md b/packages/documentation/copy/en/reference/Modules.md index 56f93fdb57c3..aadc61794a83 100644 --- a/packages/documentation/copy/en/reference/Modules.md +++ b/packages/documentation/copy/en/reference/Modules.md @@ -261,7 +261,6 @@ TypeScript supports `export =` to model the traditional CommonJS and AMD workflo The `export =` syntax specifies a single object that is exported from the module. This can be a class, interface, namespace, function, or enum. -The modules exported by using `export =` can be imported by either of the following ways such as `import module = require(“module”)` or `import module from “./module”` and `import * as module from “./module”`. ##### ZipCodeValidator.ts