It was written as data.attrs!.type = this.type
.
I found this operator on the https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/components/VBtn/VBtn.ts page
Asked
Active
Viewed 120 times
1

user2864740
- 60,010
- 15
- 145
- 220

Khushnood Hussain
- 19
- 2
-
1It's call non-null assertion https://stackoverflow.com/questions/38874928/operator-in-typescript-after-object-method – MorKadosh Jan 08 '22 at 08:42
-
1Don’t tag typescript questions as javascript unless it actually applies to both languages. – user2864740 Jan 08 '22 at 08:49
-
3Does this answer your question? [! operator in typescript after object method](https://stackoverflow.com/questions/38874928/operator-in-typescript-after-object-method) – tsamridh86 Jan 08 '22 at 08:53
-
1Does this answer your question? [In Typescript, what is the ! (exclamation mark / bang) operator when dereferencing a member?](https://stackoverflow.com/questions/42273853/in-typescript-what-is-the-exclamation-mark-bang-operator-when-dereferenci) – MrFrenzoid Jan 08 '22 at 09:40
-
There is no `!.` operator; you should parse it like `(data.attrs!).type = this.type`. – jcalz Jan 09 '22 at 02:00