mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-01 11:50:54 +08:00
added definitions for deep-freeze
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/// <reference path="deep-freeze.d.ts" />
|
||||
|
||||
import df = require('deep-freeze');
|
||||
|
||||
class Foo {
|
||||
foo: string;
|
||||
}
|
||||
var foo:Foo = df(new Foo());
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for deep-freeze
|
||||
// Project: https://github.com/substack/deep-freeze
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module 'deep-freeze' {
|
||||
function df<T>(obj: T): T;
|
||||
export = df;
|
||||
}
|
||||
Reference in New Issue
Block a user