Skip to content

Commit b4cfa83

Browse files
refactor(guardObject): remove default value from type variable Obj
1 parent adb5cab commit b4cfa83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/type/src/guard/lib/guard-object.func.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import { 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;

0 commit comments

Comments
 (0)