import { ref , readonly , describe , expectError , expectType , Ref } from './index' ; describe ( 'should support DeepReadonly' , ( ) => { const r = readonly ( { obj : { k : 'v' } } ) ; expectError ( ( r . obj = { } ) ) ; expectError ( ( r . obj . k = 'x' ) ) ; } ) ; describe ( 'readonly ref' , ( ) => { const r = readonly ( ref ( { count : 1 } ) ) ; expectType < Ref > ( r ) ; } ) ;