-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-use normal enum and stop using "import *"
- Loading branch information
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
packages/typescript/parse-dependency-range/lib/constants/arrays/enum-values/index.ts
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import { object } from 'convenient-typescript-utilities' | ||
import * as types from '../../../types' | ||
import { Type, TarballUrl, GitUrl, LocalUrl } from '../../../types' | ||
const { values } = object | ||
|
||
export const TYPE = values(types.Type) | ||
export const TYPE = values(Type) | ||
|
||
export namespace TARBALL_URL { | ||
export const PROTOCOL = values(types.TarballUrl.Protocol) | ||
export const EXTENSION = values(types.TarballUrl.Extension) | ||
export const PROTOCOL = values(TarballUrl.Protocol) | ||
export const EXTENSION = values(TarballUrl.Extension) | ||
} | ||
|
||
export namespace GIT_URL { | ||
export const PROTOCOL = values(types.GitUrl.Protocol) | ||
export const PROTOCOL = values(GitUrl.Protocol) | ||
} | ||
|
||
export namespace LOCAL_URL { | ||
export const PROTOCOL = values(types.LocalUrl.Protocol) | ||
export const PROTOCOL = values(LocalUrl.Protocol) | ||
} |
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