Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
fix Exported external package typings file '...' is not a module
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Jan 30, 2016
1 parent c173782 commit ebdb29d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions tcomb.d.ts → index.d.ts
@@ -1,4 +1,4 @@
declare module tcomb {
declare module __Tcomb {

type Predicate<T> = (x: T) => boolean;
type TypeGuardPredicate<T> = (x: any) => x is T;
Expand Down Expand Up @@ -245,6 +245,4 @@ declare module tcomb {
export var update: Update<Object>;
}

declare module "tcomb" {
export = tcomb
}
export default __Tcomb
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"version": "2.6.0",
"description": "Type checking and DDD for JavaScript",
"main": "index.js",
"typings": "tcomb.d.ts",
"typings": "index.d.ts",
"files": [
"index.js",
"lib",
Expand Down
2 changes: 1 addition & 1 deletion tcomb-tests.ts
@@ -1,4 +1,4 @@
import * as t from 'tcomb'
import t from './index'

//
// basic types
Expand Down

0 comments on commit ebdb29d

Please sign in to comment.