amplify-cli-core
Version:
Amplify CLI Core
39 lines • 1.23 kB
TypeScript
export type HookExtensions = Record<string, {
runtime: string;
runtime_options?: string[];
runtime_windows?: string;
}>;
export type HooksConfig = {
extensions?: HookExtensions;
ignore?: string[];
};
export type HookFileMeta = {
baseName: string;
extension?: string;
filePath?: string;
fileName: string;
};
export type EventPrefix = 'pre' | 'post';
export type HookEvent = {
command: string;
subCommand?: string;
argv: string[];
eventPrefix?: EventPrefix;
forcePush: boolean;
};
export type DataParameter = {
amplify: {
version?: string;
environment?: string;
command?: string;
subCommand?: string;
argv?: string[];
};
};
export type ErrorParameter = {
message: string;
stack: string;
};
export type HooksVerb = 'add' | 'update' | 'remove' | 'push' | 'pull' | 'publish' | 'delete' | 'checkout' | 'list' | 'get' | 'mock' | 'build' | 'status' | 'import' | 'gqlcompile' | 'addgraphqldatasource' | 'statements' | 'types';
export type HooksNoun = 'notifications' | 'analytics' | 'api' | 'auth' | 'function' | 'hosting' | 'interactions' | 'predictions' | 'storage' | 'codegen' | 'env';
//# sourceMappingURL=hooksTypes.d.ts.map