@@ -7,7 +7,9 @@ import type * as Component from "./Component.js"
|
||||
export const MemoizedTypeId: unique symbol = Symbol.for("@effect-fc/Memoized/Memoized")
|
||||
export type MemoizedTypeId = typeof MemoizedTypeId
|
||||
|
||||
export interface Memoized<P> extends MemoizedOptions<P> {
|
||||
export interface Memoized<P> extends MemoizedPrototype, MemoizedOptions<P> {}
|
||||
|
||||
export interface MemoizedPrototype {
|
||||
readonly [MemoizedTypeId]: MemoizedTypeId
|
||||
}
|
||||
|
||||
@@ -16,7 +18,7 @@ export interface MemoizedOptions<P> {
|
||||
}
|
||||
|
||||
|
||||
export const MemoizedPrototype = Object.freeze({
|
||||
export const MemoizedPrototype: MemoizedPrototype = Object.freeze({
|
||||
[MemoizedTypeId]: MemoizedTypeId,
|
||||
|
||||
transformFunctionComponent<P extends {}>(
|
||||
|
||||
Reference in New Issue
Block a user