import chalk from 'chalk' ; import { ModPlatform } from '../Plugin.types' ; param property param text param link export function addWarningAndroid ( property , text , link ? ) { console . warn ( formatWarning ( 'android' , property , text , link ) ) ; } param property param text param link export function addWarningIOS ( property , text , link ? ) { console . warn ( formatWarning ( 'ios' , property , text , link ) ) ; } export function addWarningForPlatform ( platform , property , text , link ? ) { console . warn ( formatWarning ( platform , property , text , link ) ) ; } function formatWarning ( platform , property , warning , link ? ) { return chalk . yellow `${ '» ' + chalk . bold ( platform ) }: ${ property }: ${ warning }${ link ? chalk . gray ( ' ' + link ) : '' }` ; }