Skip to content

Commit

Permalink
revert: isReference
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi02014 committed Jul 5, 2024
1 parent 19f99e4 commit 7003fbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs/utils/validator/isPlainObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Plain Object란, 기본적으로 `객체 리터럴({})` 혹은 `new Object()`로

## Interface
```ts title="typescript"
export const isPlainObject: (value: unknown) => value is object;
const isPlainObject: (value: unknown) => value is Record<PropertyKey, any>
```

## Usage
Expand Down
5 changes: 2 additions & 3 deletions packages/utils/src/validator/isReference/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Reference } from '@modern-kit/types';
import { isPrimitive } from '../isPrimitive';

export const isReference = (
value: unknown
): value is Record<PropertyKey, any> => {
export const isReference = (value: unknown): value is Reference => {
return !isPrimitive(value);
};

0 comments on commit 7003fbc

Please sign in to comment.