Skip to content

Commit 9b2860c

Browse files
committed
fix typo
1 parent ab966e1 commit 9b2860c

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

docs/compiler/scanner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Here is a *simplied* version of the actual code in the parser that you can run d
1414
```ts
1515
import * as ts from "ntypescript";
1616

17-
// TypeScript has a singelton scanner
17+
// TypeScript has a singleton scanner
1818
const scanner = ts.createScanner(ts.ScriptTarget.Latest, /*skipTrivia*/ true);
1919

2020
// That is initialized using a function `initializeState` similar to

docs/staging/generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ console.log(iterator.next()); // 2
3131
Now that you have seen `function*`, `yield` and `.next()` we can dig deeper.
3232

3333
#### Catching Errors
34-
Any errors thrown (intentially using `throw` or unintentionally due to error) from the generator can be caught using `try/catch` just like normal function executions. This is demonstrated below:
34+
Any errors thrown (intentionally using `throw` or unintentionally due to error) from the generator can be caught using `try/catch` just like normal function executions. This is demonstrated below:
3535

3636
```ts
3737
function* wholeNumbers() {

docs/styleguide/styleguide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ const foo: string = "hello";
258258
> Reasons: Its easier to read. Its used by the TypeScript team. Makes easier to know something is an array as the mind is trained to detect `[]`.
259259
260260
## Filename
261-
Name files with `camelCase`. E.g. `accordian.tsx`, `myControl.tsx`, `utils.ts`, `map.ts` etc.
261+
Name files with `camelCase`. E.g. `accordion.tsx`, `myControl.tsx`, `utils.ts`, `map.ts` etc.
262262

263263
> Reason: Conventional across many JS teams.
264264

docs/tips/nominalTyping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type Id<T extends string> = {
1818
type FooId = Id<'foo'>;
1919
type BarId = Id<'bar'>;
2020

21-
/** Optional: contructors functions */
21+
/** Optional: constructors functions */
2222
const createFoo = (value: string): FooId => ({ type: 'foo', value });
2323
const createBar = (value: string): BarId => ({ type: 'bar', value });
2424

docs/types/index-signatures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ type FormState =
301301
& { [fieldName: string]: FieldState }
302302

303303

304-
// Use it for some JavaScript object you are gettting from somewhere
304+
// Use it for some JavaScript object you are getting from somewhere
305305
declare const foo:FormState;
306306

307307
const isValidBool = foo.isValid;

docs/types/never.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ However, *only `never` can be assigned to another never*. e.g.
2121
let foo: never = 123; // Error: Type number is not assignable to never
2222

2323
// Okay as the function's return type is `never`
24-
let bar: never = (() => { throw new Error('Throw my hands in the air like I just dont care') })();
24+
let bar: never = (() => { throw new Error(`Throw my hands in the air like I just don't care`) })();
2525
```
2626

2727
Great. Now let's just jump into its key use case :)

docs/types/typeGuard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ doStuff(new Bar());
8181

8282
### in
8383

84-
The `in` operator does a safe check for the existance of a property on an object and can be used as a type guard. E.g.
84+
The `in` operator does a safe check for the existence of a property on an object and can be used as a type guard. E.g.
8585

8686
```ts
8787
interface A {

docs/why-typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var inc = x => x+1;
141141
In this section we have provided you with the motivation and design goals of TypeScript. With this out of the way we can dig into the nitty gritty details of TypeScript.
142142

143143
[](Interfaces are open ended)
144-
[](Type Inferernce rules)
144+
[](Type Inference rules)
145145
[](Cover all the annotations)
146146
[](Cover all ambients : also that there are no runtime enforcement)
147147
[](.ts vs. .d.ts)

0 commit comments

Comments
 (0)