mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
249 B
TypeScript
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);
|