Skip to content

Commit

Permalink
⭐️ Impl: Types - Add ViewModuleRelatedTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Jan 5, 2023
1 parent 4ecfd2b commit eea371a
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 eea371a

Please sign in to comment.