Skip to content

Commit

Permalink
Merge pull request #4 from AKAspanion/typescript-support
Browse files Browse the repository at this point in the history
Typescript support
  • Loading branch information
AKAspanion authored Jul 12, 2020
2 parents d251d2f + 7d07f57 commit 8199821
Show file tree
Hide file tree
Showing 14 changed files with 846 additions and 68 deletions.
112 changes: 63 additions & 49 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dependencies": {
"@mdi/js": "^5.2.45",
"@mdi/react": "^1.4.0",
"@types/react": "^16.9.43",
"react": "file:../node_modules/react",
"react-dom": "file:../node_modules/react-dom",
"react-router-dom": "^5.2.0",
Expand Down
9 changes: 9 additions & 0 deletions example/src/pages/Test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

import { TextArea } from 'ui-neumorphism'

export class Abc extends React.Component {
render() {
return <TextArea autoExpand></TextArea>
}
}
9 changes: 9 additions & 0 deletions example/src/pages/Test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

import { Dialog } from 'ui-neumorphism';

export class Abc extends React.Component {
render() {
return <div><Dialog ></Dialog></div>
}
}
1 change: 1 addition & 0 deletions example/src/react-app-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="react-scripts" />
25 changes: 25 additions & 0 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": [
"src"
]
}
Loading

0 comments on commit 8199821

Please sign in to comment.