swico 2.8.0-beta.3 → 2.8.0-beta.4

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.
Files changed (2) hide show
  1. package/package.json +3 -1
  2. package/src/index.d.ts +2 -4
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "2.8.0-beta.3",
3
+ "version": "2.8.0-beta.4",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
5
7
  "exports": {
6
8
  ".": {
7
9
  "default": "./src/index.js",
package/src/index.d.ts CHANGED
@@ -1,13 +1,11 @@
1
1
  import { GlobalData, GlobalSwicoConfigType } from './main-config';
2
2
  import { UseLocationType, UseNavType } from './typings/global-type';
3
- import { Outlet as ReactOutlet, Link as ReactLink } from './index.react';
4
- import { Outlet as VueOutlet, Link as VueLink } from './index.vue';
5
3
  import { App } from 'vue';
6
4
  import { Router } from 'vue-router';
7
5
  export type CustomConfigType = GlobalData['customConfig'];
8
6
  export type { GlobalSwicoConfigType };
9
7
  export { history } from './mock-history';
10
- declare let Outlet: typeof ReactOutlet | typeof VueOutlet, Link: typeof ReactLink | typeof VueLink, useLocation: UseLocationType, useNav: UseNavType;
8
+ declare let Outlet: any, Link: any, useLocation: UseLocationType, useNav: UseNavType;
11
9
  export { Outlet, Link, useLocation, useNav };
12
10
  export interface DefineSwicoConfigType {
13
11
  (env: 'base', config: CustomConfigType['base']): CustomConfigType['base'];
@@ -16,6 +14,6 @@ export interface DefineSwicoConfigType {
16
14
  }
17
15
  export declare const defineConfig: DefineSwicoConfigType;
18
16
  export interface DefineGlobalConfigType {
19
- onInit?: ((app: App, router: Router) => void) | (() => void);
17
+ onInit?: (app?: App, router?: Router) => void;
20
18
  }
21
19
  export declare const defineGlobal: (config: DefineGlobalConfigType) => DefineGlobalConfigType;