omni-layout 0.0.4-beta.2 → 0.0.5-beta.1

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.
@@ -1,5 +1,5 @@
1
1
  import { MenuTheme } from 'antd/es/menu/MenuContext';
2
- export declare type ContentWidth = 'Fluid' | 'Fixed';
2
+ export type ContentWidth = 'Fluid' | 'Fixed';
3
3
  export interface Settings {
4
4
  /**
5
5
  * theme for nav menu
@@ -45,7 +45,7 @@ export default class BaseMenu extends Component<BaseMenuProps> {
45
45
  * Judge whether it is http link.return a or Link
46
46
  * @memberof SiderMenu
47
47
  */
48
- getMenuItemPath: (item: MenuDataItem) => {};
48
+ getMenuItemPath: (item: MenuDataItem) => string | number | boolean | React.ReactFragment | JSX.Element;
49
49
  conversionPath: (path: string) => string;
50
50
  getPopupContainer: (fixedHeader: boolean, layout: string) => HTMLElement;
51
51
  getRef: (ref: HTMLDivElement) => void;
@@ -28,9 +28,9 @@ export interface ApiURL {
28
28
  export interface Route extends MenuDataItem {
29
29
  routes?: Route[];
30
30
  }
31
- export declare type WithFalse<T> = T | false;
32
- declare type IncludeRoute = 'component' | 'exact' | 'path';
33
- declare type RouteType = Pick<RouteProps, IncludeRoute>;
31
+ export type WithFalse<T> = T | false;
32
+ type IncludeRoute = 'component' | 'exact' | 'path';
33
+ type RouteType = Pick<RouteProps, IncludeRoute>;
34
34
  export interface RouterTypes<T extends Record<string, any> = {}, P = {}> extends BasicRouteProps {
35
35
  computedMatch?: match<P>;
36
36
  route?: RouteType & T;
@@ -40,5 +40,5 @@ export interface MessageDescriptor {
40
40
  description?: string;
41
41
  defaultMessage?: string;
42
42
  }
43
- export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
43
+ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
44
44
  export {};