Skip to content

Commit

Permalink
fix: fix return type of supportsFile modelist (#5705)
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Koreman <alicekor@amazon.nl>
  • Loading branch information
akoreman and Alice Koreman authored Dec 23, 2024
1 parent 9c94712 commit de21d50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ext/modelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Mode {

/**
* @param {string} filename
* @returns {RegExpMatchArray | null}
*/
supportsFile(filename) {
return filename.match(this.extRe);
Expand Down
2 changes: 1 addition & 1 deletion types/ace-ext.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ declare module "ace-code/src/ext/modelist" {
mode: string;
extensions: string;
extRe: RegExp;
supportsFile(filename: string): RegExpMatchArray;
supportsFile(filename: string): RegExpMatchArray | null;
}
}
declare module "ace-code/src/ext/themelist" {
Expand Down

0 comments on commit de21d50

Please sign in to comment.