mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #7140 from DeividasBakanas/typing/replace-ext
Add replace-ext
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
/// <reference path="replace-ext.d.ts" />
|
||||
import replaceExt = require('replace-ext');
|
||||
|
||||
var path: string = '/some/dir/file.js';
|
||||
var npath: string = replaceExt(path, '.coffee');
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// Type definitions for replace-ext 0.0.1
|
||||
// Project: https://github.com/wearefractal/replace-ext
|
||||
// Definitions by: Deividas Bakanas <https://github.com/DeividasBakanas>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
declare function replaceExt(npath: string, ext: string): string;
|
||||
|
||||
declare module 'replace-ext' {
|
||||
export = replaceExt;
|
||||
}
|
||||
Reference in New Issue
Block a user