Skip to content

Instantly share code, notes, and snippets.

@aaronbeall
Created December 13, 2017 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronbeall/1dc470a72199edd0d334e3379f5de709 to your computer and use it in GitHub Desktop.
Save aaronbeall/1dc470a72199edd0d334e3379f5de709 to your computer and use it in GitHub Desktop.
// Based on: https://api.highcharts.com/highcharts/tree.json
type Schema = { _meta: SchemaMeta; } & Defs;
interface SchemaMeta {
commit: string;
branch: string;
version: string;
date: string;
}
interface Defs {
[key: string]: Def;
}
type ProductName = "highcharts" | "highstock" | "highmaps";
// Code below this point was generated with schema-builder.ts
interface Sample {
value: string;
products: string[];
}
interface Type {
names: string[];
}
interface Productdesc {
value: string;
products: string[];
}
interface Default {
value: string;
products: string[];
}
interface DefaultByProduct {
highcharts: string;
highstock: string;
highmaps: string;
}
interface Doclet {
description: string;
extends: string;
products: string[];
sample: Sample;
samples: { name: string; value: string; products: string[]; }[];
since: string;
type: Type;
defaultvalue: string;
exclude: string[];
see: string[];
values: string;
productdesc: Productdesc;
default: Default;
defaultByProduct: DefaultByProduct;
context: string;
examples: string[];
deprecated: boolean | string;
tags: { originalTitle: string; title: string; text: string; value: string; }[];
memberof: string;
}
interface Meta {
fullname: string;
name: string;
line: number;
lineEnd: number;
column: number;
filename: string;
default: string | number | boolean | null;
}
interface Def {
children: Defs;
doclet: Doclet;
meta: Meta;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment