Skip to content

Commit

Permalink
Add typescript and ts-ify new files
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjohnston committed Jun 1, 2021
1 parent 802fc83 commit 12911f2
Show file tree
Hide file tree
Showing 11 changed files with 503 additions and 240 deletions.
198 changes: 190 additions & 8 deletions package-lock.json

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

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,18 @@
}
},
"dependencies": {
"@types/draft-js": "^0.11.3",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.5",
"draft-js": "^0.11.7",
"promise": "^8.0.0",
"prop-types": "^15.5.8",
"react": "^17.0.2",
"react-autosuggest": "^10.1.0",
"react-dom": "^17.0.2",
"source-map-loader": "^3.0.0",
"ts-loader": "^9.2.2",
"typescript": "^4.3.2",
"whatwg-fetch": "^3.6.2"
},
"devDependencies": {
Expand Down
18 changes: 18 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "es5",
"allowJs": true,
"allowSyntheticDefaultImports": true,
"jsx": "react",
"sourceMap": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
},
"include": [
"./wagtailmodelchoosers/client/**/*"
],
"exclude": [
"node_modules"
]
}
26 changes: 0 additions & 26 deletions wagtailmodelchoosers/client/DefaultDecorator.js

This file was deleted.

Loading

0 comments on commit 12911f2

Please sign in to comment.