Skip to content

Commit 7cf5cd4

Browse files
fix(common): fix missing angular symbol in common.ts
1 parent b083b05 commit 7cf5cd4

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/common/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @module common */ /** for typedoc */
2-
/// <reference path='../../typings/angularjs/angular.d.ts' />
32
import {isDefined, isFunction, isNumber, isString, isObject, isArray, isRegExp, isDate} from "./predicates";
43

4+
let angular = (<any> window).angular;
55
export const fromJson = angular && angular.fromJson || _fromJson;
66
export const toJson = angular && angular.toJson || _toJson;
77
export const copy = angular && angular.copy || _copy;

src/common/hof.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Higher order functions
3+
*
4+
* @module common
5+
*/
6+
17
/**
28
* Returns a new function for [Partial Application](https://en.wikipedia.org/wiki/Partial_application) of the original function.
39
*

src/common/predicates.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/** Predicates @module common */
2+
3+
/** reimplementation of common.not */
14
const not = (fn) => (x) => !fn(x);
25
const tis = (t) => (x) => typeof(x) === t;
36
export const isDefined = not(tis('undefined'));

0 commit comments

Comments
 (0)