-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
v8tenko
committed
Nov 28, 2023
1 parent
5a7beb0
commit 5c2cd06
Showing
4 changed files
with
95 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import {CustomTag, OpenApiIncluderParams} from '../models'; | ||
|
||
type Config = Pick<OpenApiIncluderParams, 'tags'>; | ||
|
||
let _config: Config = { | ||
tags: {}, | ||
}; | ||
|
||
function init(config: Config) { | ||
_config = config; | ||
} | ||
|
||
function tags() { | ||
return _config.tags; | ||
} | ||
|
||
function tag(id: string): CustomTag | undefined { | ||
return _config.tags[id]; | ||
} | ||
|
||
export default {init, tags, tag}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters