Skip to content

Commit f756cef

Browse files
committed
Use is-react-prop
1 parent 3fe85ad commit f756cef

4 files changed

Lines changed: 42 additions & 38 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// flow-typed signature: 344c6cfde20a9047880a24bba942086b
2+
// flow-typed version: <<STUB>>/is-react-prop_v0.0.2/flow_v0.44.2
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* 'is-react-prop'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module 'is-react-prop' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module 'is-react-prop/lib/index' {
26+
declare module.exports: any;
27+
}
28+
29+
declare module 'is-react-prop/src/index' {
30+
declare module.exports: any;
31+
}
32+
33+
// Filename aliases
34+
declare module 'is-react-prop/lib/index.js' {
35+
declare module.exports: $Exports<'is-react-prop/lib/index'>;
36+
}
37+
declare module 'is-react-prop/src/index.js' {
38+
declare module.exports: $Exports<'is-react-prop/src/index'>;
39+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test:coverage": "npm test -- --coverage",
1212
"prebuild": "npm run clean && npm run lint && npm run test:coverage",
1313
"build": "babel src --out-dir lib --ignore tests",
14-
"postinstall": "flow-typed install",
14+
"flow:typed": "flow-typed install",
1515
"flow:stub": "flow-typed create-stub"
1616
},
1717
"files": [
@@ -33,6 +33,7 @@
3333
},
3434
"homepage": "https://github.com/lttb/jss-styled#readme",
3535
"dependencies": {
36+
"is-react-prop": "^0.0.2",
3637
"react-jss": "^6.1.1"
3738
},
3839
"peerDependencies": {

src/utils/filter-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import isNativeProp from './is-native-prop'
1+
import isNativeProp from 'is-react-prop'
22

33

44
export default (props: Object) => Object

src/utils/is-native-prop.js

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

0 commit comments

Comments
 (0)