Skip to content

Commit

Permalink
Merge pull request #161 from riteshmukim/fix/movex-core-util-types-es…
Browse files Browse the repository at this point in the history
…lint-issues

Fixed all linting issues of core-util types.ts
  • Loading branch information
GabrielCTroia authored Oct 17, 2023
2 parents 26e2580 + 941f453 commit a5d47a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/movex-core-util/src/lib/core-util/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export type NotUndefined =
| NotUndefined[];

export type UnknownRecord = Record<string, unknown>;
export type AnyRecord = Record<string, any>;

export type JsonPatchOp<T> =
| AddOperation<Partial<T>>
Expand All @@ -32,6 +31,7 @@ export type JsonPatchOp<T> =
export type JsonPatch<T> = JsonPatchOp<T>[];

export type IsOfType<U, T, K> = T extends U ? K : never;

export type OnlyKeysOfType<T, O extends Record<string, unknown>> = {
[K in keyof O]: IsOfType<T, O[K], K>;
}[keyof O];

0 comments on commit a5d47a9

Please sign in to comment.