Skip to content

Commit

Permalink
fix: MergeInsertions can't be used as a type
Browse files Browse the repository at this point in the history
  • Loading branch information
SirWrexes committed Jun 25, 2023
1 parent 84c3029 commit cb7a663
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/Util.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MergeInsertions } from "@type-challenges/utils"
import { MergeInsertions as Merge } from "@type-challenges/utils"

export type Primitive = string | number | boolean
export type Accessor = keyof any
Expand Down Expand Up @@ -32,6 +32,7 @@ export namespace Opaque {
export type Strict<T, Tag extends string> = T & Tagged<Tag>
}

export type MergeInsertions<T> = Merge<T>
export namespace MergeInsertions {
export type TopLevel<T> = T extends object ? { [key in keyof T]: T[key] } : T
}
Expand Down

0 comments on commit cb7a663

Please sign in to comment.