/**
 * Copyright (c) 2016-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */ export interface OutputFlags { emitHeaders : boolean ; emitImplementations : boolean ; outputList : string [ ] ; singleFile : boolean ; } export function ShouldEmitObject ( flags ) { return ( flags . outputList . length == 0 || flags . outputList . indexOf ( 'object' ) !== - 1 || flags . singleFile ) ; } export function ShouldEmitPluginFile ( flags , pluginName ) { return ( flags . outputList . length == 0 || flags . outputList . indexOf ( pluginName ) !== - 1 ) ; }