From f1cdf02e9c0dca3354f4eebd38edd2ba12075893 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Fri, 26 Mar 2021 00:44:51 +0300
Subject: fix: improve typings

---
 src/containers/Service/ServiceContext.tsx | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'src/containers/Service/ServiceContext.tsx')

diff --git a/src/containers/Service/ServiceContext.tsx b/src/containers/Service/ServiceContext.tsx
index 75ac0fb..0cccc93 100644
--- a/src/containers/Service/ServiceContext.tsx
+++ b/src/containers/Service/ServiceContext.tsx
@@ -1,6 +1,11 @@
 import React from 'react';
 import { FormikProps } from 'formik';
-import { Action } from '../Page';
+import { Props as ButtonProps } from '../../components/Button';
+import { Field } from '../../components/ListTable';
+
+export interface Action extends ButtonProps {
+  name: string;
+}
 
 export interface PanelProps {
   item: any;
@@ -10,9 +15,9 @@ export interface PanelProps {
 export interface ServiceParams {
   route: string;
   name: string;
-  nameSingular: string;
-  tableFields: any[];
-  default: Record<string, any>;
+  nameSingular?: string;
+  tableFields: Field[];
+  default?: Record<string, any>;
   routes?: Record<string, React.FC>;
   actions?: Action[];
   rowLink?: (item: any) => string;
-- 
cgit v1.2.3

