@@ -5,6 +5,8 @@ import type { ExcludeKeys } from "./utils.js"
|
||||
|
||||
|
||||
export interface Component<E, R, P extends {}> extends Pipeable.Pipeable {
|
||||
new(_: never): {}
|
||||
|
||||
readonly body: (props: P) => Effect.Effect<React.ReactNode, E, R>
|
||||
readonly displayName?: string
|
||||
readonly options: Component.Options
|
||||
@@ -21,10 +23,6 @@ export namespace Component {
|
||||
}
|
||||
}
|
||||
|
||||
export interface ComponentClass<E, R, P extends {}> extends Component<E, R, P> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
const ComponentProto = Object.seal({
|
||||
pipe() { return Pipeable.pipeArguments(this, arguments) }
|
||||
|
||||
Reference in New Issue
Block a user