diff --git a/src/index.ts b/src/index.ts index 5efb42d..a5572ce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ import main from './main' import first from './first' +import second from './second' import third from './third' import type { Options } from './main' @@ -11,6 +12,7 @@ export type { export { main, first, + second, third } diff --git a/src/second.ts b/src/second.ts new file mode 100644 index 0000000..d230b7e --- /dev/null +++ b/src/second.ts @@ -0,0 +1,15 @@ +import main from './main' +import first from './first' + +export interface Options { + name?: string + age?: number +} + +export const second = (options: Options): void => { + main(options) + first(options) + console.log('second:', options.name, options.age) +} + +export default second