20 строки
487 B
JavaScript
20 строки
487 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
// This exists as a separate file only to avoid circular dependencies from
|
|
// using this in `_EmitterSubscription`. Combine this back into `EventEmitter`
|
|
// after migration and cleanup is done.
|
|
|
|
export interface EventSubscription {
|
|
remove(): void;
|
|
}
|