mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
fix camelcase type definitions
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/// <reference path="./camelcase.d.ts" />
|
||||
|
||||
import camelCase from 'camelcase';
|
||||
import camelCase = require('camelcase');
|
||||
|
||||
camelCase('foo-bar');
|
||||
camelCase('foo_bar');
|
||||
|
||||
Vendored
+3
-1
@@ -4,5 +4,7 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "camelcase" {
|
||||
export default function camelcase(...args: string[]): string;
|
||||
function camelcase(...args: string[]): string;
|
||||
namespace camelcase {}
|
||||
export = camelcase;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user