Skip to content

Commit 245a703

Browse files
authored
add useFilter support for @typescript-eslint/unbound-method (adobe#9454)
resolves adobe#9453
1 parent cff4670 commit 245a703

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/@react-aria/i18n/src/useFilter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import {useCollator} from './useCollator';
1515

1616
export interface Filter {
1717
/** Returns whether a string starts with a given substring. */
18-
startsWith(string: string, substring: string): boolean,
18+
startsWith: (string: string, substring: string) => boolean,
1919
/** Returns whether a string ends with a given substring. */
20-
endsWith(string: string, substring: string): boolean,
20+
endsWith: (string: string, substring: string) => boolean,
2121
/** Returns whether a string contains a given substring. */
22-
contains(string: string, substring: string): boolean
22+
contains: (string: string, substring: string) => boolean
2323
}
2424

2525
/**

0 commit comments

Comments
 (0)