import { toObjectTypeString , stateDecoRegExp } from './lang' ; export function quacksLikeADecorator ( args ) { return ( args . length === 2 || args . length === 3 ) && typeof args [ 1 ] === 'string' ; } export const canObserve = ( value ) : boolean => stateDecoRegExp . test ( toObjectTypeString ( value ) ) ;