Skip to content

Commit c199dae

Browse files
committed
refactor: use assume()
1 parent d0311bf commit c199dae

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/predicate/isAny.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
import { assume } from './assume.js';
2+
13
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
export const isAny = (_input: unknown): _input is any => true;
4+
export const isAny = assume<any>;

src/predicate/isUnknown.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export const isUnknown = (_input: unknown): _input is unknown => true;
1+
import { assume } from './assume.js';
2+
3+
export const isUnknown = assume<unknown>;

0 commit comments

Comments
 (0)