Exporting work from bea
This commit is contained in:
parent
d80287c8f8
commit
145272c546
17 changed files with 232 additions and 1952 deletions
26
lib/types.ts
Normal file
26
lib/types.ts
Normal file
|
@ -0,0 +1,26 @@
|
|||
export interface PatternOption {
|
||||
type?: "measure" | "percentage" | "angle" | "choice";
|
||||
onlyIf?: {
|
||||
option: string;
|
||||
oneOf: number[];
|
||||
}
|
||||
min?: number;
|
||||
max?: number;
|
||||
std: number;
|
||||
options?: {
|
||||
[index: number]: string;
|
||||
}
|
||||
}
|
||||
|
||||
export interface PatternConfig {
|
||||
parts: string[];
|
||||
measurements: string[];
|
||||
options: PatternOption[];
|
||||
[propName: string]: any;
|
||||
}
|
||||
|
||||
export type Pattern = {
|
||||
parts: string[];
|
||||
measurements: string[];
|
||||
config: PatternConfig;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue