Documentation: mention that you will need a shim so tsc doesn't complain
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 70/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- documentation
Research direction
Use the issue's src/shims-md.d.ts example as the reference for the documentation change. Find the project's existing documentation entry point and explain that TypeScript Vue users importing .md files need an ambient module declaration; done means the shim and its purpose are documented clearly.
Written by the indexing model from the issue text.
Description
If you're writing typescript Vue code, tsc will complain when you do import Doc from 'Doc.md'. You need to add a shim (ambient typescript module declaration) to tell tsc that a .md is a Vue component:
% cat src/shims-md.d.ts
declare module '*.md' {
import Vue from 'vue'
export default Vue
}
Otherwise when building, you will get errors about missing components.
- Dominant language
- JavaScript
- Stars
- 24
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from egoist/vmark-loader
-
Example? Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
egoist/vmark-loader#3 ·
All issues in egoist/vmark-loader
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·