bitbucket
Version:
Bitbucket API client for Browser and Node.js
15 lines (12 loc) • 514 B
text/typescript
type AuthBasic = import('../auth/types').AuthBasic
type AuthToken = import('../auth/types').AuthToken
export type APIClient = import('../../client/types').APIClient
export type Options = import('../../client/types').Options
export type RequestOptions = import('../../endpoint/types').RequestOptions
export type AuthenticateOptions =
| (AuthBasic & { type: 'apppassword' | 'basic' })
| (AuthToken & { type: 'token' })
export type AuthenticatePluginState = {
client: APIClient
auth?: AuthenticateOptions
}