My code:
interface Item {
title: string;
type: string;
description: string;
}
data() {
return {
id: "",
item: {} as Item,
file: //Here
};
}
Hello, I'm looking to add a File type to my vuejs data.
I saw this solution that could work:
interface Item {
title: string;
type: string;
description: string;
file: File;
}
data() {
return {
id: "",
item: {} as Item
};
}
but I don't want to add my data file to my Item interface or in an object.