DefinitelyTyped/types/deep-freeze/deep-freeze-tests.ts
Joel Brenstrum 07b144b70a [@types/deep-freeze] - allow functions to be called with out error (#37096)
* allow functions to be called

* lint

* fix ups
2019-08-05 09:59:40 -07:00

11 lines
249 B
TypeScript

import df = require('deep-freeze');
class Foo {
foo: string;
}
const foo = df(new Foo());
const items = df([{id: 0, name: 'first'}]);
const functionTest = df({id: 0, name: 'first', update: (blah: boolean) => blah});
functionTest.update(true);