From ad393f4243a10f9a5ab0ecd8afa5e6c07a088f5d Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 23 Oct 2022 01:30:18 +0300 Subject: feat: add pre-render hook --- src/lib/types.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/types.ts') diff --git a/src/lib/types.ts b/src/lib/types.ts index ed2566f..bce6b36 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -18,4 +18,8 @@ export interface BenzinConfig { emojiRoot: string; css: string; } + + hooks: { + preRender: (path: string[], data: string, adapter: Adapter, cdn: string) => Promise; + } } -- cgit v1.2.3