Skip to content

[vue] 怎么配置使vue2.0+支持TypeScript写法? #440

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

[vue] 怎么配置使vue2.0+支持TypeScript写法?

Activity

citrus327

citrus327 commented on Jul 2, 2019

@citrus327

使用
vuejs/vue-class-component

Kntt

Kntt commented on Jul 4, 2019

@Kntt
  • 配置ts-loader,tsconfig
  • 增加类型扩展,让ts识别vue文件
  • vue文件中script里面换成ts写法, 需要增加几个ts扩展的package, 比如vue-property-decorator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@citrus327@Kntt

        Issue actions

          [vue] 怎么配置使vue2.0+支持TypeScript写法? · Issue #440 · haizlin/fe-interview