@bluemarble/bm-components 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -6,7 +6,7 @@ import * as _mui_material_OverridableComponent from '@mui/material/OverridableCo
6
6
  import { FactoryOpts } from 'imask';
7
7
  import { IconType } from 'react-icons';
8
8
  import { NextApiRequest, NextApiResponse, GetServerSidePropsContext } from 'next';
9
- import { ZodType, ZodSchema } from 'zod';
9
+ import { ZodSchema } from 'zod';
10
10
  import { AxiosInstance } from 'axios';
11
11
 
12
12
  interface ColumnTitleProps {
@@ -448,8 +448,8 @@ declare class ApiHelper<T> {
448
448
  constructor(props?: ConstructorProps$1<T>);
449
449
  setMiddlewares(middlewares: any[]): this;
450
450
  createMethods(methods: MethodProps<T>): (req: NextApiRequest, res: NextApiResponse) => Promise<void | NextApiResponse<any>>;
451
- static parserErrorWrapper<Output, Def extends ZodType>(body: Record<string, any>, parser: ZodSchema<Output, Def>): Output;
452
- static parseQueyFilters<T extends Record<string, any>>(filters: T): T;
451
+ static parse: typeof ApiHelper.parserErrorWrapper;
452
+ static parserErrorWrapper<Output, Def>(body: Record<string, any>, parser: ZodSchema<Output, Def>): Output;
453
453
  static create({ onFinally }: {
454
454
  onFinally: any;
455
455
  }): ApiHelper<unknown>;
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import * as _mui_material_OverridableComponent from '@mui/material/OverridableCo
6
6
  import { FactoryOpts } from 'imask';
7
7
  import { IconType } from 'react-icons';
8
8
  import { NextApiRequest, NextApiResponse, GetServerSidePropsContext } from 'next';
9
- import { ZodType, ZodSchema } from 'zod';
9
+ import { ZodSchema } from 'zod';
10
10
  import { AxiosInstance } from 'axios';
11
11
 
12
12
  interface ColumnTitleProps {
@@ -448,8 +448,8 @@ declare class ApiHelper<T> {
448
448
  constructor(props?: ConstructorProps$1<T>);
449
449
  setMiddlewares(middlewares: any[]): this;
450
450
  createMethods(methods: MethodProps<T>): (req: NextApiRequest, res: NextApiResponse) => Promise<void | NextApiResponse<any>>;
451
- static parserErrorWrapper<Output, Def extends ZodType>(body: Record<string, any>, parser: ZodSchema<Output, Def>): Output;
452
- static parseQueyFilters<T extends Record<string, any>>(filters: T): T;
451
+ static parse: typeof ApiHelper.parserErrorWrapper;
452
+ static parserErrorWrapper<Output, Def>(body: Record<string, any>, parser: ZodSchema<Output, Def>): Output;
453
453
  static create({ onFinally }: {
454
454
  onFinally: any;
455
455
  }): ApiHelper<unknown>;