Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Typescript Support #109

Open
little3201 opened this issue Jan 27, 2021 · 6 comments
Open

Typescript Support #109

little3201 opened this issue Jan 27, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@little3201
Copy link

has typescript support plan ?

@little3201 little3201 added the enhancement New feature or request label Jan 27, 2021
@JanGuillermo
Copy link
Owner

Hi @little3201!

This has been planned, although I haven't gotten to it. I'll get back to you later in this thread.

@JanGuillermo JanGuillermo changed the title typescript support Typescript Support Feb 24, 2021
@jackywu
Copy link

jackywu commented Apr 3, 2021

@JanGuillermo

I guess it is the same problem.

vue 3 + typescript

ERROR in src/components/modules/Markdown.vue:7:27
TS7016: Could not find a declaration file for module 'vue3-markdown-it'. '/Users/wc/codebase/my-project/QuantiInvestSystem/frontend/node_modules/vue3-markdown-it/dist/vue3-markdown-it.umd.min.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/vue3-markdown-it` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue3-markdown-it';`
     5 | <script lang="ts">
     6 | import { defineComponent } from "vue";
  >  7 | import VueMarkdownIt from "vue3-markdown-it";
       |                           ^^^^^^^^^^^^^^^^^^
     8 |
     9 | export default defineComponent({
    10 |   name: "markdown",


@Artmorse
Copy link

Artmorse commented Oct 2, 2021

Yes, i've the same issue... 😞

@jannikbuscha
Copy link

jannikbuscha commented Oct 25, 2021

Yes, i've the same issue... 😞

if not exist, create a shims-vue.d.ts file (next to package.json) and write in that file: declare module 'vue3-markdown-it';

@mauriciabad
Copy link

mauriciabad commented Feb 23, 2022

Typescript support should be pretty easy to add, just rename the files to .ts, use defineComponent and use PropType.

@HugoJBello
Copy link

Yes, i've the same issue... disappointed

if not exist, create a shims-vue.d.ts file (next to package.json) and write in that file: declare module 'vue3-markdown-it';

better in the src folder

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

7 participants