diff options
Diffstat (limited to 'src/services/products/index.ts')
-rw-r--r-- | src/services/products/index.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/services/products/index.ts b/src/services/products/index.ts index c869541..8e09eb2 100644 --- a/src/services/products/index.ts +++ b/src/services/products/index.ts @@ -1,7 +1,8 @@ import Form from './ProductForm'; import { ServiceParams } from '../../lib/ServiceContext'; +import { Product } from '../types'; -const service: ServiceParams = { +const service: ServiceParams<Product> = { route: 'products', name: 'Товары', nameSingular: 'Товар', @@ -12,7 +13,7 @@ const service: ServiceParams = { ], default: { name: '', - price: '', + price: 0, quantity: 0, }, Form, |