diff --git a/src/Components/AppShell/AppShell.tsx b/src/Components/AppShell/AppShell.tsx index be88baba..9db9aadd 100644 --- a/src/Components/AppShell/AppShell.tsx +++ b/src/Components/AppShell/AppShell.tsx @@ -4,6 +4,8 @@ import { SetAppState } from './SetAppState' import type { AssetsApi } from '#types/AssetsApi' +export type { AssetsApi } from '#types/AssetsApi' + /** * @category AppShell */ diff --git a/src/Components/Auth/useAuth.tsx b/src/Components/Auth/useAuth.tsx index 1cbba54c..ffde8af5 100644 --- a/src/Components/Auth/useAuth.tsx +++ b/src/Components/Auth/useAuth.tsx @@ -8,6 +8,9 @@ import { createContext, useState, useContext, useEffect } from 'react' import type { UserApi } from '#types/UserApi' import type { UserItem } from '#types/UserItem' +export type { UserApi } from '#types/UserApi' +export type { UserItem } from '#types/UserItem' + interface AuthProviderProps { userApi: UserApi children?: React.ReactNode diff --git a/src/Components/Map/Layer.tsx b/src/Components/Map/Layer.tsx index 01ce5946..a5071cb7 100644 --- a/src/Components/Map/Layer.tsx +++ b/src/Components/Map/Layer.tsx @@ -27,6 +27,11 @@ import type { Tag } from '#types/Tag' import type { Popup } from 'leaflet' import type { ReactElement, ReactNode } from 'react' +export type { Item } from '#types/Item' +export type { LayerProps } from '#types/LayerProps' +export type { Tag } from '#types/Tag' +export type { Popup } from 'leaflet' + /** * @category Map */ diff --git a/src/Components/Map/Permissions.tsx b/src/Components/Map/Permissions.tsx index 47a61a1c..ab429529 100644 --- a/src/Components/Map/Permissions.tsx +++ b/src/Components/Map/Permissions.tsx @@ -7,18 +7,18 @@ import { useSetPermissionData, useSetPermissionApi, useSetAdminRole } from './ho import type { ItemsApi } from '#types/ItemsApi' import type { Permission } from '#types/Permission' -/** - * @category Map - */ -export function Permissions({ - data, - api, - adminRole, -}: { +export interface PermissionsProps { data?: Permission[] api?: ItemsApi adminRole?: string -}) { +} +export type { Permission } from '#types/Permission' +export type { ItemsApi } from '#types/ItemsApi' + +/** + * @category Map + */ +export function Permissions({ data, api, adminRole }: PermissionsProps) { const setPermissionData = useSetPermissionData() const setPermissionApi = useSetPermissionApi() const setAdminRole = useSetAdminRole()