Skip to content

Commit

Permalink
fix(conf@3.1.4): typedef fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Aug 7, 2023
1 parent 459248d commit b58cf49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions conf/conf.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export class ConfigError extends Error {
}

export class Config {
constructor (environment: Environment)
readonly environment: Environment
override (options: object)
constructor (environment?: Environment)
readonly environment?: Environment
override (options: object): this
getFlag <T extends boolean, U> (name: string, fallback?: ()=>T|U): T|U
getString <T extends string, U> (name: string, fallback?: ()=>T|U): T|U
getNumber <T extends number, U> (name: string, fallback?: ()=>T|U): T|U
Expand Down
2 changes: 1 addition & 1 deletion conf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hackbg/conf",
"version": "3.1.3",
"version": "3.1.4",
"main": "conf.mjs",
"types": "conf.d.ts",
"type": "module",
Expand Down

0 comments on commit b58cf49

Please sign in to comment.