diff --git a/replace-ext/replace-ext-tests.ts b/replace-ext/replace-ext-tests.ts
new file mode 100644
index 000000000..660a0b68b
--- /dev/null
+++ b/replace-ext/replace-ext-tests.ts
@@ -0,0 +1,5 @@
+///
+import replaceExt = require('replace-ext');
+
+var path: string = '/some/dir/file.js';
+var npath: string = replaceExt(path, '.coffee');
diff --git a/replace-ext/replace-ext.d.ts b/replace-ext/replace-ext.d.ts
new file mode 100644
index 000000000..d66680e7c
--- /dev/null
+++ b/replace-ext/replace-ext.d.ts
@@ -0,0 +1,11 @@
+// Type definitions for replace-ext 0.0.1
+// Project: https://github.com/wearefractal/replace-ext
+// Definitions by: Deividas Bakanas
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+
+declare function replaceExt(npath: string, ext: string): string;
+
+declare module 'replace-ext' {
+ export = replaceExt;
+}