Skip to content

Commit

Permalink
💫 Update: Types - UtilityTypes
Browse files Browse the repository at this point in the history
Summary: Impl. `UnionWithAutoComplete`.
  • Loading branch information
dominicstop committed Apr 21, 2023
1 parent 1807146 commit dbf0e79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types/UtilityTypes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export type KeyMapType<T extends string, K extends { [k in `${T}`]: any }> = K;

export type FunctionVoid = () => void;

export interface Nothing {}
export type UnionWithAutoComplete<T, U> = T | (U & Nothing);

0 comments on commit dbf0e79

Please sign in to comment.