-
Notifications
You must be signed in to change notification settings - Fork 391
Allow Credential to auto-generate typings, separate internal vs external APIs #1012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One suggestion on avoiding the cyclic dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Let's rename the new module to something more appropriate.
@@ -19,7 +19,7 @@ import fs = require('fs'); | |||
import os = require('os'); | |||
import path = require('path'); | |||
|
|||
import { GoogleOAuthAccessToken, Credential } from './credential'; | |||
import { GoogleOAuthAccessToken, Credential } from './google-oauth-access-token'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets call it credential-interfaces.ts
since it has more than just the access token type.
src/credential/index.ts
Outdated
@@ -15,6 +15,7 @@ | |||
*/ | |||
|
|||
import * as credentialApi from './credential'; | |||
import * as googleOauthAccessTokenApi from './google-oauth-access-token'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoogleOAuthAccessToken
interface should also be exported. But looks like it's part of the admin
namespace today. So perhaps we should do it later once we start refactoring the top-level admin
namespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM 👍
Allows
Credential
to auto-generate typings and separate internal vs external APIs.Follow-up to #1011.