diff --git a/stsg/definitions.py b/stsg/definitions.py new file mode 100644 index 0000000..d1e254f --- /dev/null +++ b/stsg/definitions.py @@ -0,0 +1,26 @@ +from typing import TypedDict + + +class ArticleConfig(TypedDict): + slug: str + name: str + iso_date: str + author: str + + +class ArticleContext(TypedDict): + slug: str + name: str + url: str + date: str + iso_date: str + author: str + + +class ArticleTranslationContext(TypedDict): + slug: str + name: str + url: str + date: str + iso_date: str + author: str