Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

adding type definitions for adal-node #176

Merged
merged 9 commits into from
Nov 3, 2017
Merged

Conversation

amarzavery
Copy link
Contributor

@amarzavery amarzavery commented Nov 2, 2017

This is what the adal-node module looks like in javascript. This PR ensures that it has all the type definitions in sync with js definition exported on require("adal-node").

> var adal = require("adal-node")
undefined
> adal
{ Logging:
   { LOGGING_LEVEL: { ERROR: 0, WARN: 1, INFO: 2, VERBOSE: 3 },
     setLoggingOptions: [Function: setLoggingOptions],
     getLoggingOptions: [Function: getLoggingOptions],
     LogOptions: { log: [Function: log], level: 0 } },
  AuthenticationContext: [Function: AuthenticationContext],
  setGlobalADALOptions: [Function: setGlobalADALOptions],
  getGlobalADALOptions: [Function: getGlobalADALOptions],
  MemoryCache: [Function: MemoryCache],
  AuthenticationParameters: [Function: AuthenticationParameters],
  createAuthenticationParametersFromHeader: [Function],
  createAuthenticationParametersFromResponse: [Function],
  createAuthenticationParametersFromUrl: [Function],
  createAuthenticationContext: [Function] }

Thanks to @mmaitre314. I have taken the initial version from the link he specified in #142 and modified it further.

This is how the corresponding object definition in TS looks like
image

@amarzavery
Copy link
Contributor Author

@lovemaths - Please review the changes :).

@amarzavery amarzavery mentioned this pull request Nov 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants