@@ -27,7 +27,10 @@ export const memo = <T extends Component.Component<any, any, any, any>>(
|
||||
self: T
|
||||
): T & Memo<Component.Component.Props<T>> => Object.setPrototypeOf(
|
||||
Object.assign(function() {}, self),
|
||||
Object.freeze({ ...Object.getPrototypeOf(self), ...MemoProto }),
|
||||
Object.freeze(Object.setPrototypeOf(
|
||||
Object.assign({}, MemoProto),
|
||||
Object.getPrototypeOf(self),
|
||||
)),
|
||||
)
|
||||
|
||||
export const withOptions: {
|
||||
|
||||
@@ -59,7 +59,10 @@ export const suspense = <T extends Component.Component<any, any, any, any>>(
|
||||
& Suspense
|
||||
) => Object.setPrototypeOf(
|
||||
Object.assign(function() {}, self),
|
||||
Object.freeze({ ...Object.getPrototypeOf(self), ...SuspenseProto }),
|
||||
Object.freeze(Object.setPrototypeOf(
|
||||
Object.assign({}, SuspenseProto),
|
||||
Object.getPrototypeOf(self),
|
||||
)),
|
||||
)
|
||||
|
||||
export const withOptions: {
|
||||
|
||||
Reference in New Issue
Block a user