diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/lib/utils.d.ts b/dist/lib/utils.d.ts deleted file mode 100644 index 56a45ba..0000000 --- a/dist/lib/utils.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type Service from 'serverless/classes/Service'; -import type { Output } from 'serverless/plugins/aws/provider/awsProvider'; -import { OutputInfo } from '../type/serverless-export-resources'; -export declare const DEFAULT_EXPORT_PREFIX: "aser"; -export declare function generateLambdaFunctionFullName(logicalName: string, postfix?: string): string; -export declare function generateStateMachineFullName(logicalName: string, customName: string, postfix?: string): string; -export declare function validateLambdaFunctionExportRequirements(service: Service, functionNames?: string[]): string[]; -export declare function validateStateMachineExportRequirements(service: Service, stateMachineNames?: string[]): string[]; -export declare function prepareLambdaFunctionOutputs(service: Service, functionNames?: string[]): Record; -export declare function prepareStateMachineOutputs(service: Service, stateMachineNames?: string[]): Record; -export declare function generateCustomOutputs(stackName: string, resourceOutputs: Record, type: 'function' | 'stateMachine'): Record; diff --git a/dist/type/serverless-export-resources.d.ts b/dist/type/serverless-export-resources.d.ts deleted file mode 100644 index 3000688..0000000 --- a/dist/type/serverless-export-resources.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { FunctionDefinitionHandler, FunctionDefinitionImage } from 'serverless'; -import type Service from 'serverless/classes/Service'; -import type { Outputs } from 'serverless/plugins/aws/provider/awsProvider'; -interface FunctionDefinitionHandlerDescription extends FunctionDefinitionHandler { - description?: string; -} -interface FunctionDefinitionImageDescription extends FunctionDefinitionImage { - description?: string; -} -export type FunctionDefinitionDescription = FunctionDefinitionHandlerDescription | FunctionDefinitionImageDescription; -interface StateMachineDefinition { - Comment?: string; - StartAt: string; - States: Record; -} -export type StateMachine = { - name?: string; - definition: StateMachineDefinition; -}; -export type ExportResourcesConfig = { - functions?: string[]; - stateMachines?: string[]; - prefix: string; -}; -export type OutputInfo = { - fullName: string; - description: string; -}; -export type ResourceOutputs = { - functions: Record; - stateMachines: Record; -}; -export type ServerlessResources = Service['resources'] & { - Outputs?: Outputs; -}; -export {};