Skip to content

Commit

Permalink
Remove deprecated asArray function
Browse files Browse the repository at this point in the history
  • Loading branch information
mbyrne00 committed Dec 14, 2023
1 parent 193a391 commit 486a241
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-doors-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mondokit/core": patch
---

Remove deprecated asArray function
5 changes: 0 additions & 5 deletions packages/core/src/util/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import { castArray } from "lodash-es";

export type OneOrMany<T> = T | ReadonlyArray<T>;

/** @deprecated use lodash castArray instead */
export const asArray = <T>(input: OneOrMany<T>): T[] => castArray(input);

export const isReadonlyArray = <T>(input: OneOrMany<T>): input is ReadonlyArray<T> => Array.isArray(input);

0 comments on commit 486a241

Please sign in to comment.