https://github.com/fox-archives/repro-markmap-missing-types
https://github.com/fox-archives/repro-markmap-missing-types
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fox-archives/repro-markmap-missing-types
- Owner: fox-archives
- Archived: true
- Created: 2023-07-12T01:03:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-12T01:03:58.000Z (almost 2 years ago)
- Last Synced: 2025-01-17T16:37:27.179Z (5 months ago)
- Language: TypeScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# repro-markmap-missing-types
```sh
git clone https://github.com/hyperupcall/repro-markmap-missing-types
cd repro-markmap-missing-types
npm i
``````sh
$ node --version
v20.3.0
``````text
$ ./node_modules/.bin/tsc -p .
index.ts:1:29 - error TS7016: Could not find a declaration file for module 'markmap-lib'. '/tmp/tmp.5nuGfbTBcq/node_modules/markmap-lib/dist/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/markmap-lib` if it exists or add a new declaration (.d.ts) file containing `declare module 'markmap-lib';`1 import { Transformer } from 'markmap-lib'
~~~~~~~~~~~~~Found 1 error in index.ts:1
```