Skip to content
This repository was archived by the owner on May 24, 2019. It is now read-only.
This repository was archived by the owner on May 24, 2019. It is now read-only.

Attribute of class removed #75

@tcastelly

Description

@tcastelly

I'm using VueJS + FlowJS, when I remove types, attributes of class not initialized are removed too.
Unfortunately initialize variable is not possible here with VueJS because it come from a parent. So I can't rewrite it, there is an error at runtime.

e.g:

@Component
export default class UserDetails extends Vue {
  @Prop({ type: Number, required: true })
  id: number;
}

After flow-remove-types

@Component
export default class UserDetails extends Vue {
  @Prop({ type: Number, required: true })
}

That I expect:

@Component
export default class UserDetails extends Vue {
  @Prop({ type: Number, required: true })
  id;
}

Is there a solution ?
Thank you very much.

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

    Issue actions