Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0d30c75

Browse files
Merge branch 'master' of github.com:javivelasco/react-css-themr
* 'master' of github.com:javivelasco/react-css-themr: update babel-core, babel-preset-es2015, babel-preset-stage-0 TypeScript definitions
2 parents 0bef61c + d522c36 commit 0d30c75

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

‎package.json‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"homepage": "https://github.com/javivelasco/react-css-themr#readme",
55
"version": "1.5.0",
66
"main": "./lib",
7+
"typings": "./src/index.d.ts",
78
"author": {
89
"email": "javier.velasco86@gmail.com",
910
"name": "Javi Velasco",
@@ -28,12 +29,12 @@
2829
},
2930
"devDependencies": {
3031
"babel-cli": "^6.7.7",
31-
"babel-core": "^6.7.7",
32+
"babel-core": "^6.18.0",
3233
"babel-eslint": "^6.0.3",
3334
"babel-plugin-transform-decorators-legacy": "^1.3.4",
34-
"babel-preset-es2015": "^6.6.0",
35+
"babel-preset-es2015": "^6.18.0",
3536
"babel-preset-react": "^6.5.0",
36-
"babel-preset-stage-0": "^6.5.0",
37+
"babel-preset-stage-0": "^6.16.0",
3738
"eslint": "^2.8.0",
3839
"eslint-config-rackt": "^1.1.1",
3940
"eslint-plugin-babel": "^3.2.0",

‎src/index.d.ts‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
declare module "react-css-themr"
2+
{
3+
export interface IThemrOptions
4+
{
5+
/** @default "deeply" */
6+
composeTheme?: "deeply" | "softly" | false,
7+
/** @default false */
8+
withRef?: boolean
9+
}
10+
11+
export interface ThemeProviderProps
12+
{
13+
theme: {}
14+
}
15+
16+
export class ThemeProvider extends React.Component<ThemeProviderProps, any>
17+
{
18+
19+
}
20+
21+
export function themr(
22+
identifier: string,
23+
defaultTheme?: {},
24+
options?: IThemrOptions
25+
);
26+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /