chore(react): use connection state generics internally

This commit is contained in:
moklick
2024-07-10 12:04:23 +02:00
parent 6904b5bd49
commit b41b111af6
3 changed files with 6 additions and 16 deletions
+3 -1
View File
@@ -173,7 +173,9 @@ export type ConnectionState<NodeType extends InternalNodeBase = InternalNodeBase
| ConnectionInProgress<NodeType>
| NoConnection;
export type UpdateConnection = (params: ConnectionState) => void;
export type UpdateConnection<NodeType extends InternalNodeBase = InternalNodeBase> = (
params: ConnectionState<NodeType>
) => void;
export type ColorModeClass = 'light' | 'dark';
export type ColorMode = ColorModeClass | 'system';