File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @gitbook/api ' : minor
3
+ ---
4
+
5
+ Publicly expose type for endpoint / authToken
Original file line number Diff line number Diff line change @@ -17,7 +17,16 @@ interface GitBookAPIErrorResponse {
17
17
export class GitBookAPI extends Api < {
18
18
authToken ?: string ;
19
19
} > {
20
- private endpoint : string ;
20
+
21
+ /**
22
+ * Endpoint used by the API client.
23
+ */
24
+ public readonly endpoint : string ;
25
+
26
+ /**
27
+ * Authentication token used by the API client.
28
+ */
29
+ public readonly authToken : string | undefined ;
21
30
22
31
constructor (
23
32
options : {
@@ -80,6 +89,7 @@ export class GitBookAPI extends Api<{
80
89
} ) ;
81
90
82
91
this . endpoint = endpoint ;
92
+ this . authToken = authToken ;
83
93
this . setSecurityData ( { authToken } ) ;
84
94
}
85
95
You can’t perform that action at this time.
0 commit comments