-
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.
- Loading branch information
1 parent
b2b3e0e
commit 12c2e3b
Showing
1 changed file
with
4 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
// https://github.com/andreashuber69/verify-coldcard-dice-seed/blob/develop/README.md#----verify-coldcard-dice-seed | ||
type InNames = "once" | "pause" | "resume"; | ||
|
||
export type GenericIn<T extends keyof NodeJS.ReadStream> = Pick<NodeJS.ReadStream, T>; | ||
|
||
export type GenericOut<T extends keyof NodeJS.WriteStream> = Pick<NodeJS.WriteStream, T>; | ||
type GenericOut<T extends keyof NodeJS.WriteStream> = Pick<NodeJS.WriteStream, T>; | ||
|
||
export interface GenericInOut<T, U> { | ||
readonly stdin: T; | ||
readonly stdout: U; | ||
} | ||
|
||
export type In = GenericIn<InNames>; | ||
export type In = Pick<NodeJS.ReadStream, "once" | "pause" | "resume">; | ||
|
||
export type InOut = GenericInOut<GenericIn<InNames>, GenericOut<"write">>; | ||
export type InOut = GenericInOut<In, GenericOut<"write">>; | ||
|
||
export type InMovableOut = GenericInOut<GenericIn<InNames>, GenericOut<"moveCursor" | "write">>; | ||
export type InMovableOut = GenericInOut<In, GenericOut<"moveCursor" | "write">>; |