Commit 19a16637 authored by 曾思程's avatar 曾思程

进行类型导出重构

parent cc0c8611
...@@ -4,4 +4,5 @@ import { Jensen } from './src/jensen'; ...@@ -4,4 +4,5 @@ import { Jensen } from './src/jensen';
export * from './type' export * from './type'
export default Jensen; export default Jensen;
...@@ -18,8 +18,7 @@ export type FileInfo = { ...@@ -18,8 +18,7 @@ export type FileInfo = {
signature: string; signature: string;
}; };
declare module jensenType { export declare class Jensen {
class Jensen {
constructor(log: typeof Logger) constructor(log: typeof Logger)
onconnect: Function; onconnect: Function;
onmessage: (data: any) => void | null; onmessage: (data: any) => void | null;
...@@ -87,7 +86,5 @@ declare module jensenType { ...@@ -87,7 +86,5 @@ declare module jensenType {
state: boolean, state: boolean,
seconds?: number seconds?: number
) => Promise<ReturnStruct['common']>; ) => Promise<ReturnStruct['common']>;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment