-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: format code with dotnet-format, Prettier and StandardJS
This commit fixes the style issues introduced in c9d9a01 according to the output from dotnet-format, Prettier and StandardJS. Details: None
- Loading branch information
1 parent
c9d9a01
commit 8cd91ce
Showing
2 changed files
with
60 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,45 @@ | ||
/* | ||
* github-cli-types.ts | ||
* | ||
* Created: 2022-11-27-05:39:27 | ||
* Modified: 2022-12-05-04:14:47 | ||
* | ||
* Author: David G. Moore, Jr. <[email protected]> | ||
* | ||
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved | ||
* License: MIT (https://opensource.org/licenses/MIT) | ||
*/ | ||
import { SemVer } from "semver"; | ||
|
||
export interface PackageVersion { | ||
id: number; | ||
name: string; | ||
package_html_url: string; | ||
url: string; | ||
created_at: string; | ||
updated_at: string; | ||
visibility: string; | ||
package_type: PackageType; | ||
downloads_count: number; | ||
description: string; | ||
html_url: string; | ||
license: string; | ||
} | ||
|
||
export interface ApiMessage { | ||
message: string; | ||
documentation_url: string; | ||
} | ||
|
||
export type PackageType = "nuget" | "npm" | "docker" | "maven" | "rubygems" | "container"; | ||
|
||
|
||
export const toSemVer = (stringVer: string | undefined) => new SemVer(stringVer ?? "0.0.0"); | ||
export const toPackageType = (stringType: string | undefined) => stringType as PackageType; | ||
/* | ||
* github-cli-types.ts | ||
* | ||
* Created: 2022-11-27-05:39:27 | ||
* Modified: 2022-12-05-04:14:47 | ||
* | ||
* Author: David G. Moore, Jr. <[email protected]> | ||
* | ||
* Copyright © 2022-2023 David G. Moore, Jr., All Rights Reserved | ||
* License: MIT (https://opensource.org/licenses/MIT) | ||
*/ | ||
import { SemVer } from "semver"; | ||
|
||
export interface PackageVersion { | ||
id: number; | ||
name: string; | ||
package_html_url: string; | ||
url: string; | ||
created_at: string; | ||
updated_at: string; | ||
visibility: string; | ||
package_type: PackageType; | ||
downloads_count: number; | ||
description: string; | ||
html_url: string; | ||
license: string; | ||
} | ||
|
||
export interface ApiMessage { | ||
message: string; | ||
documentation_url: string; | ||
} | ||
|
||
export type PackageType = | ||
| "nuget" | ||
| "npm" | ||
| "docker" | ||
| "maven" | ||
| "rubygems" | ||
| "container"; | ||
|
||
export const toSemVer = (stringVer: string | undefined) => | ||
new SemVer(stringVer ?? "0.0.0"); | ||
export const toPackageType = (stringType: string | undefined) => | ||
stringType as PackageType; |