Skip to content

Commit

Permalink
Fix d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
OEvgeny committed Dec 4, 2024
1 parent 8a97582 commit 54167e7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { createElement, type ComponentType } from 'react';
import { render, unmountComponentAtNode } from 'react-dom';

enum ConnectionState {
DISCONNECTED,
CONNECTED,
PENDING
}
const ConnectionState = {
DISCONNECTED: 0,
CONNECTED: 1,
PENDING: 2
};

export default function wrapAsCustomElement<Props extends { [key: string]: string | undefined } & { children?: never }>(
component: ComponentType<Props>,
Expand Down

0 comments on commit 54167e7

Please sign in to comment.