Skip to content

Commit e1c84c3

Browse files
authored
Merge pull request #77 from mootari/patch-1
Fix spelling and grammar in best practices
2 parents 7b3b67c + fab8695 commit e1c84c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/documents/guides/best-practices.html.md.eco

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ layout: 'guide'
33
title: 'Best practices'
44
---
55

6-
This is a guide to the best practices to follow when creating typing files. There are a variety of different ways that typing files can be constructed. Different approaches can be used - this is intended as a guide to what approaches make sense in certain scenarios.
6+
This is a guide to the best practices to follow when creating typing files. There are a variety of different ways that typing files can be constructed. Different approaches can be used - this is intended as a guide to what approaches make sense in certain scenarios.
77

8-
Also, it's a steer on how to deal with limitations in TypeScript. As much as it hurts to say it, TypeScript v1.0 is not flawless. There are certain minor flaws / shortcomings in the language which have implicatations for how typings are created. Here we will detail those limitations, how they can be worked around at present and how you can best vote for improvements in the language on the [TypeScript site](//typescript.codeplex.com).
8+
Also, it's a steer on how to deal with limitations in TypeScript. As much as it hurts to say it, TypeScript v1.0 is not flawless. There are certain minor flaws / shortcomings in the language which have implications for how typings are created. Here we will detail those limitations, how they can be worked around at present and how you can best vote for improvements in the language on the [TypeScript site](//typescript.codeplex.com).
99

1010
### Ghost modules
1111
Also called `non-instantiated modules`. Instead of polluting the global namespace with many interfaces, it is okay to create a module that contains *interfaces only*. This does not introduce a variable on the global namespace (see safety in below sample) and this module can only be used for *types*.
1212
````typescript
13-
// this pattern has 3 name in top level
13+
// this pattern has 3 names in top level
1414
interface NodeFoo { }
1515
interface NodeBar { }
1616
interface NodeBuzz { }
@@ -25,7 +25,7 @@ declare namespace NodeJS {
2525
// safety!
2626
var n = NodeJS; // TS Error : Could not find symbol NodeJS
2727
````
28-
This also allows you to open up further customization in external modules as interfaces declared *inside* external module declarations cannot be extended e.g. the following is good as people can customize `foo` further in other library definitions.
28+
This also allows you to open up further customization in external modules as interfaces declared *inside* external module declarations cannot be extended. The following is a good example as people can customize `foo` further in other library definitions.
2929
```typescript
3030
// Usage when declaring an external module
3131
declare module 'foo' {

0 commit comments

Comments
 (0)