1
0
Fork 0

🚧 WIP:Work on types and exports

This commit is contained in:
Joost De Cock 2018-07-10 19:29:09 +02:00
parent 145272c546
commit c8d502c698
16 changed files with 312 additions and 95 deletions

View file

@ -1,12 +1,15 @@
export type PatternOptionType = "measure" | "percentage" | "angle" | "choice" | "constant";
export interface PatternOption {
type?: "measure" | "percentage" | "angle" | "choice";
id: string;
val: number;
type?: string;
onlyIf?: {
option: string;
oneOf: number[];
}
min?: number;
max?: number;
std: number;
options?: {
[index: number]: string;
}
@ -24,3 +27,21 @@ export type Pattern = {
measurements: string[];
config: PatternConfig;
}
export type DraftMode = "sample" | "compare" | "draft";
export type CompareGroup = "men" | "women";
export type Units = "metric" | "imperial";
export interface DraftConfig {
mode: DraftMode;
units?: Units;
options: PatternOption[];
measurements?: {
[index:string]: number;
};
sa?: number;
scope?: string[];
theme?: string;
}