File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ import { ResultCallback } from '../../type/result-callback.type';
99 * @param callback An optional `ResultCallback` function to handle result before returns.
1010 * @returns A `boolean` indicating whether or not the `value` is an `object` of a generic `Obj`.
1111 */
12- export const guardObject : GuardObject = < Obj = object > ( value : Obj , callback ?: ResultCallback ) : value is Obj =>
12+ export const guardObject : GuardObject = < Obj > ( value : Obj , callback ?: ResultCallback ) : value is Obj =>
1313 isObject < Obj > ( value , callback ) ;
Original file line number Diff line number Diff line change 11import { ResultCallback } from '../../type/result-callback.type' ;
2- export type GuardObject = < Obj = object > ( value : Obj , callback ?: ResultCallback ) => value is Obj ;
2+ export type GuardObject = < Obj > ( value : Obj , callback ?: ResultCallback ) => value is Obj ;
You can’t perform that action at this time.
0 commit comments