Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permalink: /docs/handbook/declaration-files/templates/global-plugin-d-ts.html
## _UMD_

A _UMD_ module is one that can _either_ be used as module (through an import), or as a global (when run in an environment without a module loader).
Many popular libraries, such as [Moment.js](http://momentjs.com/), are written this way.
Many popular libraries, such as [Moment.js](https://momentjs.com/), are written this way.
For example, in Node.js or using RequireJS, you would write:

```ts
Expand Down Expand Up @@ -46,7 +46,7 @@ and a "Using in the browser" example showing using a `<script>` tag to load the
### Examples of UMD libraries

Most popular libraries are now available as UMD packages.
Examples include [jQuery](https://jquery.com/), [Moment.js](http://momentjs.com/), [lodash](https://lodash.com/), and many more.
Examples include [jQuery](https://jquery.com/), [Moment.js](https://momentjs.com/), [lodash](https://lodash.com/), and many more.

### Template

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ a call-by-value lexically scoped language with lots of mutability and
not much else.
[R<sup>4</sup>RS Scheme](https://people.csail.mit.edu/jaffer/r4rs.pdf) is a good example.

[The C++ Programming Language](http://www.stroustrup.com/4th.html) is
[The C++ Programming Language](https://www.stroustrup.com/4th.html) is
a good place to learn about C-style type syntax. Unlike C++,
TypeScript uses postfix types, like so: `x: string` instead of `string x`.

Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/copy/en/handbook-v1/Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ let buildNameFun: (fname: string, ...rest: string[]) => string = buildName;
Learning how to use `this` in JavaScript is something of a rite of passage.
Since TypeScript is a superset of JavaScript, TypeScript developers also need to learn how to use `this` and how to spot when it's not being used correctly.
Fortunately, TypeScript lets you catch incorrect uses of `this` with a couple of techniques.
If you need to learn how `this` works in JavaScript, though, first read Yehuda Katz's [Understanding JavaScript Function Invocation and "this"](http://yehudakatz.com/2011/08/11/understanding-javascript-function-invocation-and-this/).
If you need to learn how `this` works in JavaScript, though, first read Yehuda Katz's [Understanding JavaScript Function Invocation and "this"](https://yehudakatz.com/2011/08/11/understanding-javascript-function-invocation-and-this/).
Yehuda's article explains the inner workings of `this` very well, so we'll just cover the basics here.

### `this` and arrow functions
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/copy/en/reference/JSX.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This is important for two reasons:
2. The types of the attributes being passed in the JSX element should be looked up differently.
Intrinsic element attributes should be known _intrinsically_ whereas components will likely want to specify their own set of attributes.

TypeScript uses the [same convention that React does](http://facebook.github.io/react/docs/jsx-in-depth.html#html-tags-vs.-react-components) for distinguishing between these.
TypeScript uses the [same convention that React does](https://legacy.reactjs.org/docs/jsx-in-depth.html#html-tags-vs-react-components) for distinguishing between these.
An intrinsic element always begins with a lowercase letter, and a value-based element always begins with an uppercase letter.

### The `JSX` namespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,5 @@ The best part about the _lib.dom.d.ts_ type definitions is that they are reflect

Sources:

- [ECMA-262 Standard](http://www.ecma-international.org/ecma-262/10.0/index.html)
- [ECMA-262 Standard](https://www.ecma-international.org/ecma-262/10.0/index.html)
- [Introduction to the DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model/Introduction)