Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import main from './main'
import first from './first'
import third from './third'

import type { Options } from './main'

Expand All @@ -9,7 +10,8 @@ export type {

export {
main,
first
first,
third
}

export default main
13 changes: 13 additions & 0 deletions src/third.ts
Original file line number Diff line number Diff line change
@@ -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