mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-05 12:20:07 +08:00
fix camelcase type definitions
This commit is contained in:
1 parent
95433230a9
commit
47f676c600
2 files changed
+4
-2
No files matched your search
@@ -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