Skip to content

Commit

Permalink
Fixed all linting issues of core-util types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshmukim committed Oct 17, 2023
1 parent 3ddf96d commit a21da50
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 a21da50

Please sign in to comment.