From a6ade42d509cc4e8d7d96a296f51b8cdefc39429 Mon Sep 17 00:00:00 2001 From: Rown Moonsteer <126879713+rownmstr@users.noreply.github.com> Date: Tue, 16 May 2023 12:40:15 +0700 Subject: [PATCH 1/3] feat: second feature (#4) * feat: initial first method (05925b5) * feat: implement main in first method (b447175) --------- Co-authored-by: Rown Moonsteer --- src/first.ts | 13 +++++++++++++ src/index.ts | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/first.ts diff --git a/src/first.ts b/src/first.ts new file mode 100644 index 0000000..09bd9f2 --- /dev/null +++ b/src/first.ts @@ -0,0 +1,13 @@ +import main from './main' + +export interface Options { + name?: string + age?: number +} + +export const first = (options: Options): void => { + main(options) + console.log('first:', options.name, options.age) +} + +export default first diff --git a/src/index.ts b/src/index.ts index 53ae2e0..cd85b94 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ import main from './main' +import first from './first' import type { Options } from './main' @@ -7,7 +8,8 @@ export type { } export { - main + main, + first } export default main From 4055363f8569df3f455e3d3818773acd8851cd94 Mon Sep 17 00:00:00 2001 From: Purplown Moonsteer <126879014+purplownmstr@users.noreply.github.com> Date: Tue, 16 May 2023 13:43:26 +0700 Subject: [PATCH 2/3] feat: third feature (#5) * feat: initial third method (7429af8) * feat: implement main in third method (463ed27) --------- Co-authored-by: Purplown Moonsteer --- src/index.ts | 4 +++- src/third.ts | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/third.ts diff --git a/src/index.ts b/src/index.ts index cd85b94..5efb42d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ import main from './main' import first from './first' +import third from './third' import type { Options } from './main' @@ -9,7 +10,8 @@ export type { export { main, - first + first, + third } export default main diff --git a/src/third.ts b/src/third.ts new file mode 100644 index 0000000..21319c4 --- /dev/null +++ b/src/third.ts @@ -0,0 +1,13 @@ +import main from './main' + +export interface Options { + name?: string + age?: number +} + +export const third = (options: Options): void => { + main(options) + console.log('third:', options.name, options.age) +} + +export default third From 4761a3a1548915dfc31f25b1712e102281018b4f Mon Sep 17 00:00:00 2001 From: Rown Moonsteer <126879713+rownmstr@users.noreply.github.com> Date: Tue, 16 May 2023 13:50:27 +0700 Subject: [PATCH 3/3] feat: second-max feature (#6) * feat: max second method [baaa4d7] * feat: implement main method in second-max method [edb9b7b] --------- Co-authored-by: Rown Moonsteer --- src/index.ts | 2 ++ src/second.ts | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/second.ts 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