Skip to content

Commit

Permalink
export types
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 23, 2024
1 parent d57fe9d commit d336e81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { restore } from './lib/restore.js';
import { setGetAppCallback } from './lib/app_handler.js';
import ApplicationUnittest from './app/extend/application.js';

export * from './lib/types.js';

// egg-bin will set this flag to require files for instrument
// if (process.env.EGG_BIN_PREREQUIRE) {
// require('./lib/prerequire');
Expand Down
6 changes: 6 additions & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ export interface MockClusterOptions extends MockOptions {
opt?: object;
}

/**
* @deprecated please use MockOptions instead
* keep this for compatible
*/
export type MockOption = MockOptions;

export interface MockApplicationOptions extends MockOptions {
baseDir: string;
framework: string;
Expand Down

0 comments on commit d336e81

Please sign in to comment.