Skip to content

Commit

Permalink
feat: Add Language#normalizeLanguageOptions() (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas authored Nov 14, 2024
1 parent 2fa68b7 commit 3591a78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3591a78

Please sign in to comment.