forked from electron/update.electronjs.org
-
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.
chore: Added JSDocs to improve maintainability and tooling support
- Loading branch information
1 parent
ff2d7c0
commit 231cd03
Showing
6 changed files
with
83 additions
and
9 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
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,23 @@ | ||
import type { PLATFORM_ARCH } from "./constants.js"; | ||
|
||
export type Platform = typeof PLATFORM_ARCH[keyof typeof PLATFORM_ARCH]; | ||
|
||
export interface Lock { | ||
unlock(): Promise<void>; | ||
} | ||
|
||
export interface ServerCache { | ||
get<T = unknown>(key: string): Promise<T | undefined>; | ||
set(key: string, value: any): Promise<void>; | ||
lock(resource: unknown): Promise<Lock>; | ||
} | ||
|
||
export type Latest = { | ||
[P in Platform | "darwin" | "win32"]?: { | ||
name: string; | ||
version: string; | ||
url: string; | ||
notes: string; | ||
RELEASES?: string; | ||
}; | ||
}; |
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