mirror of
https://github.com/morluto/rea.git
synced 2026-12-04 01:54:49 +00:00
12 lines
386 B
TypeScript
12 lines
386 B
TypeScript
export function isGitHubId(value: unknown): value is string | number;
|
|
export interface WorkflowPath {
|
|
readonly file: string;
|
|
readonly ref: string | null;
|
|
}
|
|
export interface NormalizedWorkflowRun {
|
|
readonly workflowPath: WorkflowPath | null;
|
|
}
|
|
export function normalizeWorkflowRun<T extends Record<string, unknown>>(
|
|
value: T,
|
|
): Omit<T, "workflowPath"> & NormalizedWorkflowRun;
|