From fe725b81fce6d8cff7fe365a1883f49452a2e073 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Sun, 22 Nov 2015 22:05:59 +0500 Subject: [PATCH] A definition of module "inherits" has been added --- inherits/inherits-tests.ts | 7 +++++++ inherits/inherits.d.ts | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 inherits/inherits-tests.ts create mode 100644 inherits/inherits.d.ts diff --git a/inherits/inherits-tests.ts b/inherits/inherits-tests.ts new file mode 100644 index 000000000..7d05a7b0b --- /dev/null +++ b/inherits/inherits-tests.ts @@ -0,0 +1,7 @@ +/// + +import inherits = require('inherits'); + +let any: any; + +inherits(any, any); diff --git a/inherits/inherits.d.ts b/inherits/inherits.d.ts new file mode 100644 index 000000000..3028ddc00 --- /dev/null +++ b/inherits/inherits.d.ts @@ -0,0 +1,11 @@ +// Type definitions for inherits +// Project: https://github.com/isaacs/inherits +// Definitions by: Ilya Mochalov +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module "inherits" { + import {inherits} from "util"; + export = inherits; +}