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://
14
14
- [ For GitHub Apps] ( #for-github-apps )
15
15
- [ Options] ( #options )
16
16
- [ Result] ( #result )
17
+ - [ Types] ( #types )
17
18
- [ License] ( #license )
18
19
19
20
<!-- tocstop -->
@@ -263,6 +264,16 @@ Returns an array of strings. Returns <code>options.scopes</code> if it was set a
263
264
</tbody >
264
265
</table >
265
266
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
+
266
277
## License
267
278
268
279
[ MIT] ( LICENSE )
Original file line number Diff line number Diff line change 1
1
import { ClientType , Options , Result } from "./types" ;
2
+ export { ClientType , Options , Result } from "./types" ;
2
3
3
4
export function oauthAuthorizationUrl <
4
5
TClientType extends ClientType = "oauth-app"
You can’t perform that action at this time.
0 commit comments