update to latest standards

This commit is contained in:
2018-07-15 16:04:27 +02:00
parent b8100f8dfc
commit 2392915959
34 changed files with 1111 additions and 1023 deletions

View File

@ -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';

View File

@ -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;

View File

@ -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>();

View File

@ -1,4 +1,4 @@
import * as plugins from "./lik.plugins";
import * as plugins from './lik.plugins';
export interface IObjectmapForEachFunction<T> {
(itemArg: T): void;

View File

@ -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 };

View File

@ -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;
}
}

View File

@ -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[] {