Skip to content

Commit e7b1fbc

Browse files
committed
Merge pull request DefinitelyTyped#8191 from SamVerschueren/camelcase
fix camelcase type definitions
2 parents 0a99e0a + 47f676c commit e7b1fbc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

camelcase/camelcase-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path="./camelcase.d.ts" />
22

3-
import camelCase from 'camelcase';
3+
import camelCase = require('camelcase');
44

55
camelCase('foo-bar');
66
camelCase('foo_bar');

camelcase/camelcase.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
// Definitions: https://github.com/borisyankov/DefinitelyTyped
55

66
declare module "camelcase" {
7-
export default function camelcase(...args: string[]): string;
7+
function camelcase(...args: string[]): string;
8+
namespace camelcase {}
9+
export = camelcase;
810
}

0 commit comments

Comments
 (0)