From 3591a7805a060cb130d40d61f200431b782431d8 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Thu, 14 Nov 2024 11:36:38 -0500 Subject: [PATCH] feat: Add Language#normalizeLanguageOptions() (#131) --- packages/core/src/types.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 16d77b4..3fc3e19 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -587,6 +587,13 @@ export interface Language< */ validateLanguageOptions(languageOptions: Options["LangOptions"]): void; + /** + * Normalizes languageOptions for this language. + */ + normalizeLanguageOptions?( + languageOptions: Options["LangOptions"], + ): Options["LangOptions"]; + /** * Helper for esquery that allows languages to match nodes against * class. esquery currently has classes like `function` that will