Skip to content

Commit

Permalink
remove broken @types/remarkable typings
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoCioria committed Dec 23, 2020
1 parent 74c9c81 commit eb5e9ec
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@types/qs": "^6.9.1",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"@types/remarkable": "^1.7.4",
"chart.js": "^2.9.3",
"cheap-ruler": "^3.0.1",
"classnames": "^2.2.6",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Details/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const { linkify } = require("remarkable/linkify");

const togpx = require("togpx");

const Remarkable = (RemarkableModule as any).Remarkable as RemarkableModule;
const { Remarkable } = RemarkableModule;

const saveGPX = (route: Route): void => {
const blob = new Blob([togpx(route)], {
Expand Down Expand Up @@ -120,7 +120,7 @@ class Markdown extends React.PureComponent<{
}
}

const md = new (Remarkable as any)().use(linkify);
const md = new Remarkable().use(linkify);

const queries = declareQueries({ route, routeReadme });
const commands = declareCommands({ doUpdateLocation });
Expand Down
1 change: 1 addition & 0 deletions typings/remarkable.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "remarkable";
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1670,11 +1670,6 @@
"@types/prop-types" "*"
csstype "^2.2.0"

"@types/remarkable@^1.7.4":
version "1.7.4"
resolved "https://registry.yarnpkg.com/@types/remarkable/-/remarkable-1.7.4.tgz#0faee73dc42cf21d718e20065a0961e53fa8e570"
integrity sha512-fsFfCxJt0C4DvAxdMR9JcnVY6FfAQrH8ia7NT0MStVbsgR73+a7XYFRhNqRHg2/FC2Sxfbg3ekuiFuY8eMOvMQ==

"@types/serve-static@*":
version "1.13.8"
resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.8.tgz#851129d434433c7082148574ffec263d58309c46"
Expand Down

0 comments on commit eb5e9ec

Please sign in to comment.