feat: started cleaning up context
This commit is contained in:
parent
036d5fb30a
commit
753de66e08
26
stsg/definitions.py
Normal file
26
stsg/definitions.py
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user