UNPKG

typed-serverless

Version:

Helps you write a consistent Serverless Framework configuration in TypeScript

14 lines (13 loc) 681 B
import { AWS } from '@serverless/typescript'; import { Resolvable } from 'typed-aws'; import { BaseResourceParams, TypedServerlessParams } from './types'; export declare type AwsTag = { Key: Resolvable<string>; Value: Resolvable<string>; }; export declare type DefaultResourceParams = BaseResourceParams & { tags?: Record<string, string>; awsTags?: AwsTag[]; }; export declare function defaultResourceParamsFactory<TId extends string = string, TConfigType extends AWS = AWS>(id: TId, config: TConfigType): DefaultResourceParams; export declare function defaultTypedServerlessParams<TId extends string = string>(): TypedServerlessParams<TId, DefaultResourceParams>;