Skip to content

Commit c3e6366

Browse files
committed
Refactor typings
1 parent e072ab9 commit c3e6366

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+166
-319
lines changed

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
"url": "https://github.com/trueadm/inferno/issues"
1212
},
1313
"devDependencies": {
14-
"@types/benchmark": "^1.0.30",
1514
"@types/chai": "^3.4.34",
16-
"@types/core-js": "^0.9.35",
1715
"@types/mocha": "^2.2.33",
1816
"@types/node": "^6.0.51",
17+
"@types/path-to-regexp": "^1.0.29",
1918
"@types/sinon": "^1.16.33",
2019
"babel-cli": "^6.18.0",
2120
"babel-core": "^6.20.0",
@@ -37,7 +36,7 @@
3736
"babel-register": "^6.18.0",
3837
"buble": "^0.14.3",
3938
"chai": "^3.5.0",
40-
"concat-stream-es6": "0.0.1",
39+
"concat-stream": "^1.5.2",
4140
"convert-source-map": "^1.3.0",
4241
"coveralls": "^2.11.15",
4342
"cross-env": "^3.1.3",
@@ -130,9 +129,8 @@
130129
"exclude": [
131130
"packages",
132131
"src/DOM/devtools.ts",
133-
"src/inferno.d.ts",
134-
"src/**/*__tests__*/**",
135-
"typings"
132+
"src/typings/*.d.ts",
133+
"src/**/*__tests__*/**"
136134
],
137135
"extension": [
138136
".ts"

packages/inferno/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
createVNode
33
} from '../../../build/core/shapes';
44
import cloneVNode from '../../../build/factories/cloneVNode';
5-
import { warning, NO_OP, isBrowser, EMPTY_OBJ } from '../../../build/shared';
5+
import { warning, NO_OP, isBrowser, EMPTY_OBJ } from '../../../build/tools/shared';
66
import { render, findDOMNode, createRenderer, enableFindDOMNode } from '../../../build/DOM/rendering';
77
import { disableRecycling } from '../../../build/DOM/recycling';
88
import { initDevToolsHooks } from '../../../build/DOM/devtools';

src/DOM/__tests__/columnrender.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect } from 'chai';
22
import { spy } from 'sinon';
33
import Component from 'inferno-component';
4-
import { isNullOrUndef } from '../../shared';
4+
import { isNullOrUndef } from '../../tools/shared';
55
import Inferno, { render } from 'inferno';
66
Inferno; // suppress ts 'never used' error
77

src/DOM/devtools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isFunction, isNull, isUndefined } from '../shared';
1+
import { isFunction, isNull, isUndefined } from '../tools/shared';
22
import { render, roots } from './rendering';
33

44
export const devToolsStatus = {

src/DOM/hydration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
isUndefined,
1212
throwError,
1313
EMPTY_OBJ,
14-
} from '../shared';
14+
} from '../tools/shared';
1515
import {
1616
mountElement,
1717
mountStatefulComponentCallbacks,

src/DOM/mounting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
isUndefined,
99
throwError,
1010
EMPTY_OBJ,
11-
} from '../shared';
11+
} from '../tools/shared';
1212
import { VNodeFlags, isVNode, copyPropsTo } from '../core/shapes';
1313
import {
1414
appendChild,

src/DOM/patching.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
isStringOrNumber,
1414
isUndefined,
1515
throwError,
16-
} from '../shared';
16+
} from '../tools/shared';
1717
import {
1818
VNode,
1919
VNodeFlags,

src/DOM/recycling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { VNode, VNodeFlags } from '../core/shapes';
22
import {
33
isNull,
44
isUndefined,
5-
} from '../shared';
5+
} from '../tools/shared';
66
import {
77
patchComponent,
88
patchElement,

src/DOM/rendering.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
isNull,
77
isNullOrUndef,
88
throwError,
9-
} from '../shared';
9+
} from '../tools/shared';
1010
import {
1111
devToolsStatus,
1212
sendRoots,

src/DOM/unmounting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
isObject,
77
throwError,
88
isNull,
9-
} from '../shared';
9+
} from '../tools/shared';
1010
import {
1111
poolComponent,
1212
poolElement,

0 commit comments

Comments
 (0)