Skip to content

Commit e0ac40e

Browse files
author
Kyle Cordes
committed
chore(types): Typings -> @types
The old type Typings tool is now deprecated, switch to the current @types mechanism which avoids the need for another, separate tool. (and minor incidental whitespace cleanup)
1 parent 97002fc commit e0ac40e

File tree

8 files changed

+10
-20
lines changed

8 files changed

+10
-20
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: node_js
2-
addons:
2+
addons:
33
"firefox": "latest"
44
node_js:
55
- "5"

most-typings.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Stream} from 'most';
2-
import {Pathname, Location} from '@cycle/history/lib/interfaces';
2+
import {Pathname, Location} from '@cycle/history';
33
import {RouteDefinitionsMap, RouteMatcherReturn} from './lib/interfaces';
44
export interface RouterSource {
55
history$: Stream<Location>;

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
},
3535
"devDependencies": {
3636
"@cycle/rxjs-run": "^6.1.0",
37+
"@types/mocha": "^2.2.41",
38+
"@types/node": "^7.0.22",
3739
"assert": "^1.4.1",
3840
"babel-preset-es2015": "^6.16.0",
3941
"babel-register": "^6.18.0",
@@ -44,14 +46,13 @@
4446
"mkdirp": "^0.5.1",
4547
"mocha": "^2.5.3",
4648
"rxjs": "^5.2.0",
49+
"switch-path": "^1.1.8",
4750
"testem": "^1.10.4",
4851
"tslint": "^3.10.2",
4952
"typescript": "^2.0.7",
50-
"typings": "^0.8.1",
5153
"uglify-js": "^2.7.1",
5254
"validate-commit-message": "^3.0.1",
53-
"xstream": "^10.3.0",
54-
"switch-path": "^1.1.8"
55+
"xstream": "^10.3.0"
5556
},
5657
"config": {
5758
"ghooks": {
@@ -67,7 +68,6 @@
6768
"pretest-ci": "npm run lib",
6869
"test-ci": "npm run lint && npm run test-node && testem ci",
6970
"predist": "rm -rf dist/ && mkdirp dist/",
70-
"prelib": "typings install",
7171
"lib": "tsc",
7272
"start": "npm install && npm prune",
7373
"prerelease": "npm run lib",

rx-typings.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Observable} from 'rx';
2-
import {Pathname, Location} from '@cycle/history/lib/interfaces';
2+
import {Pathname, Location} from '@cycle/history';
33
import {RouteDefinitionsMap, RouteMatcherReturn} from './lib/interfaces';
44
export interface RouterSource {
55
history$: Observable<Location>;

rxjs-typings.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Observable} from 'rxjs';
2-
import {Pathname, Location} from '@cycle/history/lib/interfaces';
2+
import {Pathname, Location} from '@cycle/history';
33
import {RouteDefinitionsMap, RouteMatcherReturn} from './lib/interfaces';
44
export interface RouterSource {
55
history$: Observable<Location>;

src/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ export interface RouteMatcherReturn {
1313

1414
export interface RouteMatcher {
1515
(path: string, routes: RouteDefinitionsMap | RouteDefinitionsArray): RouteMatcherReturn;
16-
}
16+
}

typings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

xstream-typings.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Stream} from 'xstream';
2-
import {Pathname} from '@cycle/history/lib/interfaces';
2+
import {Pathname} from '@cycle/history';
33
import {RouteDefinitionsMap, RouteMatcherReturn} from './lib/interfaces';
44
export interface RouterSource {
55
history$: Stream<Location>;

0 commit comments

Comments
 (0)