axa-group / oauth2-mock-server

A development and test oriented OAuth2 mock server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript type definitions

nulltoken opened this issue · comments

Summary

I'd like to use this from tests written in TypeScript

Desired solution

TypeScript type defs being part of the published package.

Additional Context

I can think of three ways to make this happen:

  • Either maintain the types here as a .d.ts file
  • Maintain them in DefinitelyTyped repo
  • Port the whole code to TypeScript and let tsc generate the type defs

The two first options have great chances to not be always kept in sync
I'd be open to submit a PR to help making the third solution happen.

@nulltoken Yes, by all means.