Skip to content

Commit

Permalink
fix(core-types.ts): Empty Object
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek-Mallick committed Oct 20, 2023
1 parent 8fe4913 commit 9ab0988
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/movex-core-util/src/lib/core-types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { UnknownRecord } from './core-util';


// eslint-disable-next-line @typescript-eslint/no-namespace
export namespace NestedObjectUtil {
// The Paths Types is taken from https://stackoverflow.com/a/58436959/2093626
Expand Down Expand Up @@ -30,8 +31,6 @@ export namespace NestedObjectUtil {
...0[]
];

export type EmptyObject = Record<string, never>;

type Join<K, P> = K extends string | number
? P extends string | number
? `${K}${'' extends P ? '' : '.'}${P}`
Expand Down Expand Up @@ -109,6 +108,8 @@ export namespace NestedObjectUtil {
: T;
}

export type EmptyObject = Record<string, never>;

export interface WsResponse<T = any> {
event: string;
data: T;
Expand Down

0 comments on commit 9ab0988

Please sign in to comment.