Skip to content

Commit

Permalink
rename main.d.ts to browser.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 3, 2016
1 parent 2fd1f5c commit 8bfe897
Show file tree
Hide file tree
Showing 101 changed files with 105 additions and 105 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -180,7 +180,7 @@ We can now use `typings` to fetch the TypeScript Type Definitions we need.

The `--ambient` flag instructs **typings** to look in ambient `.d.ts` TypeScript definitions in
[DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) repository whilst the
`--save` flag adds a reference to the common `typings/main.d.ts` file:
`--save` flag adds a reference to the common `typings/browser.d.ts` file:

```typescript
/// <reference path="main\ambient\react-dom\react-dom.d.ts" />
Expand All @@ -191,7 +191,7 @@ This is convenient as it means we only need to reference the one file in our sou
Type Definitions for all our dependencies:

```typescript
/// <reference path='../typings/main.d.ts'/>
/// <reference path='../typings/browser.d.ts'/>
```

## Start TypeScript'ing
Expand All @@ -208,7 +208,7 @@ Create an `example01/` folder and add our first TypeScript file:
#### [app.tsx](https://github.com/ServiceStackApps/typescript-redux/blob/master/src/TypeScriptRedux/src/example01/app.tsx)

```typescript
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';
import * as ReactDOM from 'react-dom';
Expand All @@ -225,7 +225,7 @@ ReactDOM.render(<HelloWorld/>, document.getElementById("content"));
I'll walk through this as there's a few things going on here, the first line:

```typescript
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>
```

Uses a [Reference Tag](http://blogs.msdn.com/b/webdev/archive/2007/11/06/jscript-intellisense-a-reference-for-the-reference-tag.aspx)
Expand Down Expand Up @@ -1719,7 +1719,7 @@ back, with their current state.
Surprisingly most of the code to make this happen is encapsulated within the React `<Connect />` component below:
```typescript
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';
import { connect } from 'react-redux';
Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/deps.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/deps.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/deps.tsx
@@ -1,4 +1,4 @@
/// <reference path='../typings/main.d.ts'/>
/// <reference path='../typings/browser.d.ts'/>

//build bundle with: jspm bundle src/deps deps.lib.js

Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example01/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example01/app.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example01/app.tsx
@@ -1,4 +1,4 @@
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';
import * as ReactDOM from 'react-dom';
Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example02/HelloWorld.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example02/HelloWorld.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example02/HelloWorld.tsx
@@ -1,4 +1,4 @@
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example02/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example02/app.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example02/app.tsx
@@ -1,4 +1,4 @@
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';
import * as ReactDOM from 'react-dom';
Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example03/Counter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example03/Counter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example03/Counter.tsx
@@ -1,4 +1,4 @@
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example03/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example03/app.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example03/app.tsx
@@ -1,4 +1,4 @@
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';
import * as ReactDOM from 'react-dom';
Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example04/Counter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example04/Counter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example04/Counter.tsx
@@ -1,4 +1,4 @@
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example04/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example04/app.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example04/app.tsx
@@ -1,4 +1,4 @@
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';
import * as ReactDOM from 'react-dom';
Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example05/Counter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example05/Counter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example05/Counter.tsx
@@ -1,4 +1,4 @@
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example05/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example05/app.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example05/app.tsx
@@ -1,4 +1,4 @@
/// <reference path='../../typings/main.d.ts'/>
/// <reference path='../../typings/browser.d.ts'/>

import * as React from 'react';
import * as ReactDOM from 'react-dom';
Expand Down
2 changes: 1 addition & 1 deletion src/TypeScriptRedux/src/example06/Counter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8bfe897

Please sign in to comment.