Skip to content

Commit

Permalink
Merge pull request #986 from edvinerikson/fix-ts
Browse files Browse the repository at this point in the history
Fix ts
  • Loading branch information
helfer authored Dec 5, 2016
2 parents 98dc33e + 77100e0 commit 708e595
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 84 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ language: node_js
node_js:
- "6"
- "4"
cache:
directories:
# cache node modules
- node_modules

install:
- npm install -g coveralls
- npm prune
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"noFallthroughCasesInSwitch": true
},
"files": [
"node_modules/typescript/lib/lib.es2015.d.ts",
"node_modules/typescript/lib/lib.dom.d.ts",
"typings.d.ts",
"fetch-mock.typings.d.ts",
"src/index.ts",
Expand Down
91 changes: 11 additions & 80 deletions typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,114 +1,50 @@
// This should (and generally does) get picked up automatically as it's installed
// at @types/es6-shim, but it doesn't work in typedoc (or Atom it seems),
// so we include it here manually
/// <reference types="typed-graphql" />
/// <reference path="node_modules/typescript/lib/lib.es2015.d.ts" />
/// <reference path="node_modules/typescript/lib/lib.dom.d.ts" />

/*
LODASH
*/
declare module 'lodash.isobject' {
import main = require('lodash');
export = main.isObject;
export = require('lodash.isObject');
}

declare module 'lodash.isequal' {
import main = require('lodash');
export = main.isEqual;
export = require('lodash.isEqual');
}

declare module 'lodash.isnull' {
import main = require('lodash');
export = main.isNull;
export = require('lodash.isNull');
}

declare module 'lodash.isstring' {
import main = require('lodash');
export = main.isString;
}

declare module 'lodash.has' {
import main = require('lodash');
export = main.has;
}

declare module 'lodash.assign' {
import main = require('lodash');
export = main.assign;
}

declare module 'lodash.merge' {
import main = require('lodash');
export = main.merge;
}

declare module 'lodash.includes' {
import main = require('lodash');
export = main.includes;
export = require('lodash.isString');
}

declare module 'lodash.isnumber' {
import main = require('lodash');
export = main.isNumber;
export = require('lodash.isNumber');
}

declare module 'lodash.isboolean' {
import main = require('lodash');
export = main.isBoolean;
export = require('lodash.isBoolean');
}

declare module 'lodash.isundefined' {
import main = require('lodash');
export = main.isUndefined;
export = require('lodash.isUndefined');
}

declare module 'lodash.forown' {
import main = require('lodash');
export = main.forOwn;
}

declare module 'lodash.omit' {
import main = require('lodash');
export = main.omit;
export = require('lodash.forOwn');
}

declare module 'lodash.mapvalues' {
import main = require('lodash');
export = main.mapValues;
export = require('lodash.mapValues');
}

declare module 'lodash.clonedeep' {
import main = require('lodash');
export = main.cloneDeep;
export = require('lodash.cloneDeep');
}

declare module 'lodash.countby' {
import main = require('lodash');
export = main.countBy;
}

declare module 'lodash.identity' {
import main = require('lodash');
export = main.identity;
}

declare module 'lodash.flatten' {
import main = require('lodash');
export = main.flatten;
export = require('lodash.countBy');
}

declare module 'lodash.pick' {
import main = require('lodash');
export = main.pick;
}

declare module 'lodash.uniq' {
import main = require('lodash');
export = main.uniq;
}
/*
GRAPHQL
Expand All @@ -126,8 +62,3 @@ declare module 'graphql-tag/parser' {
declare module 'graphql-tag/printer' {
function print(ast: any): string;
}

declare module 'deep-assign' {
function deepAssign(...objects: any[]): any;
export = deepAssign;
}

0 comments on commit 708e595

Please sign in to comment.