From 391cf89b94e291ced3bb5578f9a5618acfc2f2fb Mon Sep 17 00:00:00 2001 From: Ross Phillips <12723297+rphillips-cc@users.noreply.github.com> Date: Tue, 25 Jun 2024 15:45:10 +1200 Subject: [PATCH] Narrow the supported SSGs --- src/index.d.ts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/index.d.ts b/src/index.d.ts index 32390d1..3d2674a 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1410,8 +1410,26 @@ export interface CommitTemplate { extra_data?: Record; } +export type SsgKey = + | 'hugo' + | 'jekyll' + | 'eleventy' + | 'astro' + | 'lume' + | 'mkdocs' + | 'nextjs' + | 'sveltekit' + | 'bridgetown' + | 'docusaurus' + | 'gatsby' + | 'hexo' + | 'nuxtjs' + | 'sphinx' + | 'static' + | 'unknown'; + export interface DefaultConfiguration extends Cascade, WithSnippets { - ssg?: string; + ssg?: SsgKey; /** * Base path to your site source files, relative to the root folder. */