mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-07 23:27:05 +08:00
React Native sync
Reviewed By: sebmarkbage Differential Revision: D5214576 fbshipit-source-id: 41f350ce8961851c7404257df8295d505471d9f4
This commit is contained in:
committed by
Facebook Github Bot
parent
32a0ee0975
commit
a4947d1778
@@ -95,8 +95,10 @@ var addPoolingTo = function<T>(
|
||||
CopyConstructor: Class<T>,
|
||||
pooler: Pooler,
|
||||
): Class<T> & {
|
||||
getPooled(): /* arguments of the constructor */ T,
|
||||
release(): void,
|
||||
getPooled(
|
||||
...args: $ReadOnlyArray<mixed>
|
||||
): /* arguments of the constructor */ T,
|
||||
release(instance: mixed): void,
|
||||
} {
|
||||
// Casting as any so that flow ignores the actual implementation and trusts
|
||||
// it to match the type we declared
|
||||
|
||||
Reference in New Issue
Block a user