Skip to content

Typescript outputs unnecessary errors when compiling #9

Description

@jacksonrya

LOTS of BS like this...

ERROR in /Users/jacksonryan/Documents/plenum/plenum-website-basic/src/views/TextArticle.vue
124:2 Argument of type 'typeof TextArticle' is not assignable to parameter of type 'VueClass<Vue>'.
  Type 'typeof TextArticle' is not assignable to type 'new (...args: any[]) => Vue'.
    Type 'TextArticle' is not assignable to type 'Vue'.
      Property '$route' is private in type 'TextArticle' but not in type 'Vue'.
    122 | import TextArticleTitleCard from '../components/TextArticleTitleCard';
    123 | 
  > 124 | @Component({
        |  ^
    125 |     components: {
    126 |         headroom,
    127 |         TextArticleNavigation,

Requires a tuning up of the typescript configuration. The goal is to use typescript for java-like syntax when using OOP javascript(for example using 'private' & 'public' with data and functions) and for soft type-checking of javascript during development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions