Skip to content

Commit

Permalink
⭐️ Impl: Types - Add ViewModuleRelatedTypes
Browse files Browse the repository at this point in the history
TODO:2023-03-04-04-20-46 - Library Typescript Re-Write
  • Loading branch information
dominicstop committed Mar 3, 2023
1 parent cfebac8 commit 1081878
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/types/ViewModuleRelatedTypes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// TODO: Move to react-native-utilities

export type ViewManagerCommandID = string | number;

export type ViewManagerCommandMap<T extends string> = {
[K in T]: ViewManagerCommandID;
};

export type ViewManagerConstantMap<T = Record<string, unknown>> = {
[K in keyof T]: T[K];
};

0 comments on commit 1081878

Please sign in to comment.