rdme
Version:
ReadMe's official CLI and GitHub Action.
20 lines (19 loc) • 582 B
TypeScript
import type { Command, Hook } from '@oclif/core';
import type { Hooks } from '@oclif/core/interfaces';
type ParsedOpts = Record<string, unknown>;
export interface CreateGHAHookOptsInClass {
parsedOpts?: ParsedOpts;
result: string;
}
type CreateGHAHookOpts = Omit<CreateGHAHookOptsInClass, 'parsedOpts'> & {
command: Command.Class;
parsedOpts: ParsedOpts;
};
export interface CreateGHAHook extends Hooks {
createGHA: {
options: CreateGHAHookOpts;
return: string;
};
}
declare const hook: Hook<'createGHA', CreateGHAHook>;
export default hook;