Skip to content

Commit

Permalink
refactor(Object): Rename Object to ObjectUtils
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Object namespace has been renamed to avoid clashing with global interface
  • Loading branch information
SirWrexes committed Jun 4, 2023
1 parent a7709f5 commit b36e112
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/ObjectUtils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export type ObjectEntry = [Accessor, unknown]

export type PartialRecord<Keys extends Accessor, Values> = Partial<Record<Keys, Values>>

export namespace Object {
export namespace ObjectUtils {
/** Check that an object type's is neither `never` not `any` */
export type IsKnown<T extends object> = IsNotNever<IsNotNever<T> & IsNotAny<T>>

Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export * from './ArrayUtils'
export * from './Conditionals'
export * from './Freeze'
export * from './Object'
export * from './ObjectUtils'
export * from './StringUtils'
export * from './Test'
export * from './Union'
Expand Down

0 comments on commit b36e112

Please sign in to comment.