While attempting to extract the first character of a computed property, I utilized the charAt() function. Despite the fact that it is functioning correctly, I am receiving a warning from VSCode indicating that it is not the correct usage.
computed: { ...mapGetters({ firstname: 'user/firstname', lastname: 'user/lastname', }), initials () { return (this.firstname.charAt(0).toUpperCase() + this.lastname.charAt(0).toUpperCase()); } },
Property 'charAt' does not exist on type 'Computed'.Vetur(2339) - This warning message is appearing. I have not been able to find much information regarding this issue online