Skip to content

Commit

Permalink
bug(types): turn Context into generic
Browse files Browse the repository at this point in the history
  • Loading branch information
dkundel committed Jul 8, 2019
1 parent 786fdae commit 7d219ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/serverless-runtime-types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export type RuntimeInstance = {
getSync(config?: { serviceName: string }): ServiceContext;
};

export type Context = {
export type Context<T = {}> = {
getTwilioClient(): twilio.Twilio;
DOMAIN_NAME: string;
[key: string]: string;
};
} & T;

0 comments on commit 7d219ca

Please sign in to comment.