]> njoseph.me Git - nimcoon.git/blobdiff - src/types.nim
Remove dependency on Invidious
[nimcoon.git] / src / types.nim
diff --git a/src/types.nim b/src/types.nim
new file mode 100644 (file)
index 0000000..ee7abc7
--- /dev/null
@@ -0,0 +1,8 @@
+import tables
+
+type
+  Options* = Table[string, bool]
+  SearchResult* = tuple[title: string, url: string]
+  SearchResults* = seq[tuple[title: string, url: string]]
+  CommandLineOptions* = tuple[searchQuery: string, options: Options]
+  SelectionRange* = tuple[begin: int, until: int]