Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
Update typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellmorten committed Jul 30, 2019
1 parent 0c9b17d commit 65f682b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.d.ts
@@ -1,9 +1,18 @@
// Definitions file for integreat-adapter-soap

export const adapter: {
interface Adapter {
authentication: string,
prepareEndpoint: (endpointOptions: object, serviceOptions: object) => object,
send: (request: object) => Promise<object>,
normalize: (data: object, request: object) => Promise<object>,
serialize: (data: object, request: object) => Promise<object>
}

interface Logger {
info: (...args: any[]) => void
error: (...args: any[]) => void
}

declare const _default: (logger?: Logger) => Adapter

export = _default

0 comments on commit 65f682b

Please sign in to comment.