Skip to content

Commit 3591a78

Browse files
authored
feat: Add Language#normalizeLanguageOptions() (#131)
1 parent 2fa68b7 commit 3591a78

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/core/src/types.ts

+7
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,13 @@ export interface Language<
587587
*/
588588
validateLanguageOptions(languageOptions: Options["LangOptions"]): void;
589589

590+
/**
591+
* Normalizes languageOptions for this language.
592+
*/
593+
normalizeLanguageOptions?(
594+
languageOptions: Options["LangOptions"],
595+
): Options["LangOptions"];
596+
590597
/**
591598
* Helper for esquery that allows languages to match nodes against
592599
* class. esquery currently has classes like `function` that will

0 commit comments

Comments
 (0)