Fix directory component compilation

This commit is contained in:
Jérémy Munsch 2023-09-27 15:17:00 +02:00
parent 62dfba632d
commit ef5fea3da0
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
2 changed files with 17 additions and 16 deletions

View file

@ -153,20 +153,6 @@ import sweetalertConfirm from "../../modules/sweetalertConfirm";
import toast from "../../modules/toast";
import trans from "../../modules/trans";
type DirectoryObject = {
id: number;
name: string;
directory_id: number | null;
text: string | null;
order: number;
needAuthorization: number;
documents_count: number;
created_at: string;
updated_at: string;
children: Array<DirectoryObject> | undefined;
is_system: boolean | null;
};
export default defineComponent({
name: "DirectoriesComponent",
components: {

View file

@ -1,6 +1,6 @@
export {};
import { AxiosStatic } from "axios";
export { };
import type VueTagsInput from "@sipec/vue3-tags-input";
import { AxiosStatic } from "axios";
// * Enum
interface EnumInterface {
@ -8,6 +8,20 @@ interface EnumInterface {
value: number | string;
}
type DirectoryObj = {
id: number;
name: string;
directory_id: number | null;
text: string | null;
order: number;
needAuthorization: number;
documents_count: number;
created_at: string;
updated_at: string;
children: Array<DirectoryObj> | undefined;
is_system: boolean | null;
};
// * Laravel Paginator
interface PaginatorLink {
@ -67,6 +81,7 @@ declare global {
type LaravelModelList = ModelList;
type LaravelPaginator = Paginator;
type LaravelPaginatorLink = PaginatorLink;
type DirectoryObject = DirectoryObj;
type Enum = EnumInterface;