aboutsummaryrefslogtreecommitdiff
path: root/src/lib.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.ts')
-rw-r--r--src/lib.ts15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/lib.ts b/src/lib.ts
index 7841ac8..b3e6acc 100644
--- a/src/lib.ts
+++ b/src/lib.ts
@@ -48,11 +48,15 @@ export type ImgInfo = {
license: string,
artist: string,
credit: string,
-}
-export type TileInfoResponse = {
- tolNode: null | TolNode,
- descData: null | DescInfo | [DescInfo, DescInfo],
- imgData: null | ImgInfo | [ImgInfo, ImgInfo],
+};
+export type NodeInfo = {
+ tolNode: TolNode,
+ descInfo: null | DescInfo,
+ imgInfo: null | ImgInfo,
+};
+export type InfoResponse = {
+ nodeInfo: NodeInfo,
+ subNodesInfo: [] | [NodeInfo, NodeInfo],
};
// Used by auto-mode and tutorial
@@ -65,6 +69,7 @@ export type UiOptions = {
// Shared coloring/sizing
textColor: string, // CSS color
bgColor: string,
+ bgColorAlt: string,
bgColorLight: string,
bgColorDark: string,
bgColorLight2: string,