Skip to content

Fix other variants of Prop decorator syntax

Compare
Choose a tag to compare
@Macavity Macavity released this 31 Jan 10:50
· 378 commits to master since this release
0bce7ad

Added support for now ways to declar properties using the Prop decorator.

        @Prop({ type: Boolean, required: true }) ignored: boolean;
        @Prop({ default: false }) propBoolean: string;
        @Prop({ default: '' }) propPresent!: string;
        @Prop({ default: 0, type: Number }) propWithTypeNumber!: number;
        @Prop({ type: String, default: 'foo' }) readonly propPresentWithTypeAndDefault!: string;