Skip to content

Commit fdf1ee0

Browse files
committed
Merge pull request #630 from littleredridingfox/fix-count-type-declarations
fix: proper type declaration for `count` attribute
1 parent d522de0 commit fdf1ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare module 'ember-cli-page-object' {
2424
export function hasClass(className: string, scope?: string, options?: FindOptions): GetterDescriptor<boolean>;
2525
export function notHasClass(className: string, scope?: string, options?: FindOptions): GetterDescriptor<boolean>;
2626
export function contains(scope?: string, options?: FindOptions): (text: string) => GetterDescriptor<boolean>;
27-
export function count(scope?: string, options?: FindOptions): () => GetterDescriptor<boolean>;
27+
export function count(scope?: string, options?: FindOptions): GetterDescriptor<number>;
2828

2929
// Actions
3030
export function clickable(scope?: string, userOptions?: FindOptions): MethodDescriptor<<T>(this: T) => T>;

0 commit comments

Comments
 (0)