Skip to content

Commit 2927a41

Browse files
author
Tane Morgan
authored
Merge pull request tanem#184 from illBeRoy/patch-1
More accurate typescript typings
2 parents 26fd939 + ce65c14 commit 2927a41

File tree

22 files changed

+113
-14
lines changed

22 files changed

+113
-14
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ render(<ReactSVG src="svg.svg" />, document.getElementById('root'))
2424

2525
## Live Examples
2626

27-
- Basic Usage: [Source](https://github.com/tanem/react-svg/tree/master/examples/basic-usage) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/basic-usage)
2827
- API Usage: [Source](https://github.com/tanem/react-svg/tree/master/examples/api-usage) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/api-usage)
28+
- Basic Usage: [Source](https://github.com/tanem/react-svg/tree/master/examples/basic-usage) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/basic-usage)
29+
- CSS-in-JS: [Source](https://github.com/tanem/react-svg/tree/master/examples/css-in-js) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/css-in-js)
2930
- External Stylesheet: [Source](https://github.com/tanem/react-svg/tree/master/examples/external-stylesheet) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/external-stylesheet)
3031
- Fallbacks: [Source](https://github.com/tanem/react-svg/tree/master/examples/fallbacks) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/fallbacks)
3132
- Loading: [Source](https://github.com/tanem/react-svg/tree/master/examples/loading) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/loading)
32-
- Typescript: [Source](https://github.com/tanem/react-svg/tree/master/examples/typescript) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/typescript)
33-
- CSS-in-JS: [Source](https://github.com/tanem/react-svg/tree/master/examples/css-in-js) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/css-in-js)
33+
- Typescript 2.x: [Source](https://github.com/tanem/react-svg/tree/master/examples/typescript-2.x) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/typescript-2.x)
34+
- Typescript Latest: [Source](https://github.com/tanem/react-svg/tree/master/examples/typescript-latest) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/typescript-latest)
3435
- UMD Build (Development): [Source](https://github.com/tanem/react-svg/tree/master/examples/umd-dev) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/umd-dev)
3536
- UMD Build (Production): [Source](https://github.com/tanem/react-svg/tree/master/examples/umd-prod) | [Sandbox](https://codesandbox.io/s/github/tanem/react-svg/tree/master/examples/umd-prod)
3637

File renamed without changes.
File renamed without changes.

examples/typescript/README.md renamed to examples/typescript-2.x/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ReactSVG Typescript Example
1+
# ReactSVG Typescript 2.x Example
22

33
This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).
44

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "typescript-2.x",
3+
"description": "ReactSVG Typescript 2.x Example",
4+
"keywords": [
5+
"react-svg"
6+
],
7+
"main": "src/index.tsx",
8+
"version": "0.1.0",
9+
"private": true,
10+
"dependencies": {
11+
"react": "^16.6.3",
12+
"react-dom": "^16.6.3",
13+
"react-scripts": "^2.1.1",
14+
"react-svg": "latest"
15+
},
16+
"scripts": {
17+
"start": "react-scripts start"
18+
},
19+
"devDependencies": {
20+
"@types/jest": "^23.3.9",
21+
"@types/node": "^10.12.10",
22+
"@types/react": "^16.7.7",
23+
"@types/react-dom": "^16.0.10",
24+
"typescript": "^2.9.2"
25+
},
26+
"browserslist": [
27+
">0.2%",
28+
"not dead",
29+
"not ie <= 11",
30+
"not op_mini all"
31+
]
32+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)