Skip to content

Commit

Permalink
feat(types): add Context type
Browse files Browse the repository at this point in the history
  • Loading branch information
dkundel committed Jul 8, 2019
1 parent 4023dcc commit ce2e171
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/serverless-runtime-types/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import twilio from 'twilio';
import { ServiceContext } from 'twilio/lib/rest/sync/v1/service';

export type ResourceMap = {
Expand All @@ -11,3 +12,9 @@ export type RuntimeInstance = {
getFunctions(): ResourceMap;
getSync(config?: { serviceName: string }): ServiceContext;
};

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

0 comments on commit ce2e171

Please sign in to comment.