Skip to content

Commit aebca1d

Browse files
refactor(Expect): use type instead of typeof.
1 parent 8a54d21 commit aebca1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/expect.class.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ export class Expect {
3838
public expect<T>(
3939
actual: ExpectType<T>,
4040
expectationFailOutput?: any,
41-
): jasmine.Matchers<typeof actual> {
41+
): jasmine.Matchers<ExpectType<T>> {
4242
return this.#expect.expect(actual, expectationFailOutput);
4343
}
4444
protected expectation<T>(
4545
actual: ExpectType<T>,
46-
callbackfn: (matchers: jasmine.Matchers<typeof actual>) => any,
46+
callbackfn: (matchers: jasmine.Matchers<ExpectType<T>>) => any,
4747
expectationFailOutput?: any,
4848
): this {
4949
callbackfn && callbackfn(this.expect(actual, expectationFailOutput));

0 commit comments

Comments
 (0)