Files
toolkit/packages/core/src/interfaces.ts
T

28 lines
545 B
TypeScript
Raw Normal View History

2019-05-16 16:40:21 -04:00
/**
* The code to exit an action
*/
export enum ExitCode {
2019-05-20 19:17:56 -04:00
/**
* A code indicating that the action was successful
*/
Success = 0,
/**
* A code indicating that the action was a failure
*/
Failure = 1,
/**
* A code indicating that the action is complete, but neither succeeded nor failed
*/
Neutral = 78
2019-05-16 23:36:45 -04:00
}
/**
2019-05-17 10:23:01 -04:00
* Interface for getInput options
2019-05-16 23:36:45 -04:00
*/
2019-05-17 10:23:01 -04:00
export interface InputOptions {
2019-05-20 19:17:56 -04:00
/** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */
required?: boolean
}