reactivity.test-d.ts 264 B

123456789
  1. import { readonly, describe, expectError } from './index'
  2. describe('should support DeepReadonly', () => {
  3. const r = readonly({ obj: { k: 'v' } })
  4. // @ts-expect-error
  5. expectError((r.obj = {}))
  6. // @ts-expect-error
  7. expectError((r.obj.k = 'x'))
  8. })