Skip to content

Commit 38ba897

Browse files
authored
Merge pull request #5 from daliran/build-fix
Build fix
2 parents 5991dd4 + 8f27ea5 commit 38ba897

File tree

9 files changed

+3778
-2793
lines changed

9 files changed

+3778
-2793
lines changed

.gitignore

Lines changed: 5 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,6 @@
1+
# NPM
2+
node_modules
3+
npm-*.log*
4+
yarn-*.log*
15

2-
# Created by https://www.gitignore.io/api/node
3-
4-
### Node ###
5-
# Logs
6-
logs
7-
*.log
8-
npm-debug.log*
9-
yarn-debug.log*
10-
yarn-error.log*
11-
12-
# Runtime data
13-
pids
14-
*.pid
15-
*.seed
16-
*.pid.lock
17-
18-
# Directory for instrumented libs generated by jscoverage/JSCover
19-
lib-cov
20-
21-
# Coverage directory used by tools like istanbul
22-
coverage
23-
24-
# nyc test coverage
25-
.nyc_output
26-
27-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
28-
.grunt
29-
30-
# Bower dependency directory (https://bower.io/)
31-
bower_components
32-
33-
# node-waf configuration
34-
.lock-wscript
35-
36-
# Compiled binary addons (http://nodejs.org/api/addons.html)
37-
build/Release
38-
39-
# Dependency directories
40-
node_modules/
41-
jspm_packages/
42-
43-
# Typescript v1 declaration files
44-
typings/
45-
46-
# Optional npm cache directory
47-
.npm
48-
49-
# Optional eslint cache
50-
.eslintcache
51-
52-
# Optional REPL history
53-
.node_repl_history
54-
55-
# Output of 'npm pack'
56-
*.tgz
57-
58-
# Yarn Integrity file
59-
.yarn-integrity
60-
61-
# dotenv environment variables file
62-
.env
63-
64-
65-
# End of https://www.gitignore.io/api/node
6+
dist

lib/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Action, ActionCreator } from 'typescript-fsa';
2+
import * as Redux from 'redux';
3+
import 'rxjs/add/operator/filter';
4+
declare module 'redux-observable' {
5+
interface ActionsObservable<T extends Redux.Action> {
6+
ofAction<T, P>(action: ActionCreator<P>): ActionsObservable<Action<P>>;
7+
}
8+
}

lib/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
var redux_observable_1 = require("redux-observable");
4+
var typescript_fsa_1 = require("typescript-fsa");
5+
require("rxjs/add/operator/filter");
6+
redux_observable_1.ActionsObservable.prototype.ofAction =
7+
function (actionCreater) {
8+
return this.filter(function (action) { return (typescript_fsa_1.isType(action, actionCreater)); });
9+
};

0 commit comments

Comments
 (0)