diff --git a/index.d.ts b/index.d.ts index afc7bda..9c2d74d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -51,5 +51,8 @@ export interface AliveController { export function useAliveController(): AliveController export declare function withActivation>>(component: C): C -export declare function withAliveScope>>(component: C): C -export const version: string +export declare function withAliveScope>>(component: C): class name { + constructor(parameters) { + + } +} diff --git a/src/index.js b/src/index.js index 7d0f40f..6117e9f 100644 --- a/src/index.js +++ b/src/index.js @@ -8,7 +8,6 @@ import { } from './core/Bridge/Context' import withAliveScope, { useAliveController } from './core/withAliveScope' import NodeKey from './core/NodeKey' -import { version } from '../package.json' export default KeepAlive export { @@ -23,5 +22,4 @@ export { withAliveScope, useAliveController, NodeKey, - version, }