This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Color = string; | |
// Type definitions for Highcharts 6.0.3 (HEAD commit d351c6e on Fri Nov 24 2017 13:38:58 GMT+0100 (W. Europe Standard Time)) | |
// Project: http://www.highcharts.com/ | |
// Definitions generated from https://api.highcharts.com/ | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
// TypeScript Version: 2.6 | |
declare namespace Highcharts { | |
// plotOptions.ad.params |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Inferred type of "plotOptions.cmf.params.volumeSeriesID" as {string} from default value {"volume"} | |
Inferred type of "plotOptions.macd.groupPadding" as {number} from default value {0.1} | |
Inferred type of "plotOptions.macd.minPointLength" as {number} from default value {0} | |
Inferred type of "plotOptions.macd.pointPadding" as {number} from default value {0.1} | |
Inferred type of "plotOptions.vbp.dataLabels.style.fontSize" as {string} from default value {"7px"} | |
Inferred type of "plotOptions.vbp.crisp" as {boolean} from default value {true} | |
Inferred type of "plotOptions.vbp.pointPadding" as {number} from default value {0} | |
Inferred type of "plotOptions.bellcurve.intervals" as {number} from default value {3} | |
Inferred type of "plotOptions.bellcurve.pointsInInterval" as {number} from default value {3} | |
Inferred type of "plotOptions.series.label.style.fontWeight" as {string} from default value {"bold"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on: https://api.highcharts.com/highcharts/tree.json | |
type Schema = { _meta: SchemaMeta; } & Defs; | |
interface SchemaMeta { | |
commit: string; | |
branch: string; | |
version: string; | |
date: string; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From: https://github.com/cjgammon/SnapSVG-Animator/wiki/API | |
declare class SVGAnim { | |
public linkage: object; | |
public mc: MovieClip; | |
public s: Snap.Element; | |
public resourceManager: any; | |
constructor(json: any, width: string | number, height: string | number, fps: string | number); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---------- webpack.config.ts ---------- // | |
import * as path from "path"; | |
import * as webpack from "webpack"; | |
import * as loaders from "./webpack/loaders"; | |
import { plugins } from "./webpack/plugins"; | |
const config: webpack.Configuration = { | |
entry: { | |
app: './src/index.tsx', | |
styleguide: './styleguide/index.tsx' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sortOn<T>(array: T[], ...fields: (keyof T)[]) { | |
return array.sort((a, b) => { | |
for (const f of fields) { | |
if (a[f] > b[f]) return 1; | |
if (a[f] < b[f]) return -1; | |
} | |
return 0; | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Colors: https://coderwall.com/p/yphywg/printing-colorful-text-in-terminal-when-run-node-js-script | |
const {log, error, warn, info, debug} = console; | |
console.error = (...args: any[]) => _console.error("\x1b[31m", ...args, "\x1b[0m") // red | |
console.warn = (...args: any[]) => _console.warn("\x1b[33m", ...args, "\x1b[0m") // yellow | |
console.info = (...args: any[]) => _console.info("\x1b[34m", ...args, "\x1b[0m") // blue | |
console.debug = (...args: any[]) => _console.debug("\x1b[2m", ...args, "\x1b[0m") // dim | |
// extras | |
declare global { | |
interface Console { |
NewerOlder