-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseConfiguration.ts
More file actions
36 lines (27 loc) · 966 Bytes
/
BaseConfiguration.ts
File metadata and controls
36 lines (27 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { defaultGetPermalinkFn } from "./defaultFunctions";
import { defaultGetIssueFn } from "./defaultFunctions";
export type BaseConfiguration = {
/**
* Function to provide permalink data payload
*/
getDataFn: typeof defaultGetPermalinkFn;
/** Function to provide issue data payload */
getIssueFn: typeof defaultGetIssueFn;
/**
* A github personal access token - will be passed to the data fetching functions
*/
githubToken?: string;
/**
* If an error occurs while fetching the data this function will be called.
* You can use this to report to Sentry etc
* @param e
* @returns
*/
onError?: (e: unknown) => void;
/**
* Default value for whether GitHub permalinks should be initially expanded.
* When false, permalinks will be collapsed by default showing only the code block.
* Default: true
*/
initiallyExpandGithubPermalinks?: boolean;
};