Skip to content

Commit

Permalink
fix: Remove export default
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Nov 3, 2021
1 parent 08f2d40 commit 645a925
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@secjs/env",
"version": "1.2.1",
"version": "1.2.2",
"license": "MIT",
"author": "João Lenon",
"repository": "https://github.com/SecJS/Env.git",
Expand Down
2 changes: 1 addition & 1 deletion src/Env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface IEnv {
* @throws Error if env type is not IEnv or string
* @return The value of the environment or defaultValue
*/
export default function Env(
export function Env(
env: string | IEnv,
defaultValue: string | number | boolean,
): string | number | boolean | any {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/global.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Env, { IEnv } from '../Env'
import { Env, IEnv } from '../Env'

export {}

Expand Down

0 comments on commit 645a925

Please sign in to comment.