React Native sync

Reviewed By: sebmarkbage

Differential Revision: D5214576

fbshipit-source-id: 41f350ce8961851c7404257df8295d505471d9f4
This commit is contained in:
Brian Vaughn
2017-06-08 19:01:23 -07:00
committed by Facebook Github Bot
parent 32a0ee0975
commit a4947d1778
7 changed files with 1660 additions and 1356 deletions

View File

@@ -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