File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ See [GitHub’s Developer Guide for the OAuth App web application flow](https://
1414 - [ For GitHub Apps] ( #for-github-apps )
1515- [ Options] ( #options )
1616- [ Result] ( #result )
17+ - [ Types] ( #types )
1718- [ License] ( #license )
1819
1920<!-- tocstop -->
@@ -263,6 +264,16 @@ Returns an array of strings. Returns <code>options.scopes</code> if it was set a
263264 </tbody >
264265</table >
265266
267+ ## Types
268+
269+ ``` ts
270+ import { ClientType , Options , Result } from " @octokit/oauth-authorization-url" ;
271+ ```
272+
273+ - ` ClientType ` is a union of ` "oauth-app" ` and ` "github-app" `
274+ - ` Options<"oauth-app"> ` returns types for OAuth Apps Options. ` Options<"github-app"> ` returns types for GitHub Apps Options.
275+ - ` Result<"oauth-app"> ` returns types for OAuth Apps Result object. ` Result<"github-app"> ` returns types for GitHub Apps Result object.
276+
266277## License
267278
268279[ MIT] ( LICENSE )
Original file line number Diff line number Diff line change 11import { ClientType , Options , Result } from "./types" ;
2+ export { ClientType , Options , Result } from "./types" ;
23
34export function oauthAuthorizationUrl <
45 TClientType extends ClientType = "oauth-app"
You can’t perform that action at this time.
0 commit comments