update to latest standards
This commit is contained in:
12
ts/index.ts
12
ts/index.ts
@ -1,9 +1,9 @@
|
||||
import * as plugins from "./lik.plugins";
|
||||
import * as plugins from './lik.plugins';
|
||||
|
||||
// import modules
|
||||
|
||||
export * from "./lik.looptracker";
|
||||
export * from "./lik.objectmap";
|
||||
export * from "./lik.stringmap";
|
||||
export * from "./lik.limitedarray";
|
||||
export * from "./lik.tree";
|
||||
export * from './lik.looptracker';
|
||||
export * from './lik.objectmap';
|
||||
export * from './lik.stringmap';
|
||||
export * from './lik.limitedarray';
|
||||
export * from './lik.tree';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from "./lik.plugins";
|
||||
import * as plugins from './lik.plugins';
|
||||
|
||||
export class LimitedArray<T> {
|
||||
array: T[] = [];
|
||||
@ -28,7 +28,7 @@ export class LimitedArray<T> {
|
||||
}
|
||||
|
||||
getAverage(): number {
|
||||
if (typeof this.array[0] === "number") {
|
||||
if (typeof this.array[0] === 'number') {
|
||||
let sum = 0;
|
||||
for (let localNumber of this.array) {
|
||||
let localNumberAny: any = localNumber;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import * as plugins from "./lik.plugins";
|
||||
import * as plugins from './lik.plugins';
|
||||
|
||||
import { Objectmap } from "./lik.objectmap";
|
||||
import { Objectmap } from './lik.objectmap';
|
||||
|
||||
export class LoopTracker<T> {
|
||||
referenceObjectMap = new Objectmap<any>();
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from "./lik.plugins";
|
||||
import * as plugins from './lik.plugins';
|
||||
|
||||
export interface IObjectmapForEachFunction<T> {
|
||||
(itemArg: T): void;
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as events from "events";
|
||||
import * as lodash from "lodash";
|
||||
import * as minimatch from "minimatch";
|
||||
import * as smartq from "smartq";
|
||||
const symbolTree = require("symbol-tree");
|
||||
import * as events from 'events';
|
||||
import * as lodash from 'lodash';
|
||||
import * as minimatch from 'minimatch';
|
||||
import * as smartpromise from '@pushrocks/smartpromise';
|
||||
const symbolTree = require('symbol-tree');
|
||||
|
||||
export { events, lodash, minimatch, smartq, symbolTree };
|
||||
export { events, lodash, minimatch, smartpromise, symbolTree };
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from "./lik.plugins";
|
||||
import * as plugins from './lik.plugins';
|
||||
|
||||
/**
|
||||
* allows you to easily keep track of a bunch of strings
|
||||
@ -103,11 +103,9 @@ export class Stringmap {
|
||||
* notifies triggers
|
||||
*/
|
||||
private notifyTrigger() {
|
||||
let filteredArray = this._triggerUntilTrueFunctionArray.filter(
|
||||
functionArg => {
|
||||
return !functionArg();
|
||||
}
|
||||
);
|
||||
let filteredArray = this._triggerUntilTrueFunctionArray.filter(functionArg => {
|
||||
return !functionArg();
|
||||
});
|
||||
this._triggerUntilTrueFunctionArray = filteredArray;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from "./lik.plugins";
|
||||
import * as plugins from './lik.plugins';
|
||||
|
||||
export class Tree<T> {
|
||||
symbolTree: any;
|
||||
@ -51,7 +51,7 @@ export class Tree<T> {
|
||||
}
|
||||
|
||||
childrenToArray(parentArg: T, optionsArg: any): T[] {
|
||||
return this.symbolTree.childrenToArray(parent, optionsArg);
|
||||
return this.symbolTree.childrenToArray(parentArg, optionsArg);
|
||||
}
|
||||
|
||||
ancestorsToArray(objectArg: T, optionsArg: any): T[] {
|
||||
|
Reference in New Issue
Block a user