Skip to content

Commit

Permalink
fixup! Rename IMethodCall to IInvocation and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
alagane committed May 3, 2021
1 parent 41f2978 commit 1b591df
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ export type IMethodName =

export type IErrorName = 'error';

export type IInvocationName = IMethodName | IErrorName;

/**
* See https://jmap.io/spec-core.html#the-invocation-data-type
* [ name, arguments, methodCallId ]
*/
export type IInvocation<ArgumentsType> =
| [IMethodName, ArgumentsType, string]
| [IErrorName, IError, string];
export type IInvocation<ArgumentsType> = [
name: IInvocationName,
arguments: ArgumentsType,
methodCallId: string,
];

export type IEntityProperties = IMailboxProperties | IEmailProperties | IEmailSubmissionProperties;

Expand Down

0 comments on commit 1b591df

Please sign in to comment.