basic scheduling
This commit is contained in:
parent
71a3bdfeac
commit
df865e323d
6 changed files with 232 additions and 45 deletions
22
repl/src/types.d.ts
vendored
Normal file
22
repl/src/types.d.ts
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
export declare interface Fraction {
|
||||
(v: number): Fraction;
|
||||
d: number;
|
||||
n: number;
|
||||
s: number;
|
||||
sub: (f: Fraction) => Fraction;
|
||||
sam: () => Fraction;
|
||||
}
|
||||
export declare interface TimeSpan {
|
||||
constructor: any; //?
|
||||
begin: Fraction;
|
||||
end: Fraction;
|
||||
}
|
||||
export declare interface Hap<T = any> {
|
||||
whole: TimeSpan;
|
||||
part: TimeSpan;
|
||||
value: T;
|
||||
show: () => string;
|
||||
}
|
||||
export declare interface Pattern<T = any> {
|
||||
query: (span: TimeSpan) => Hap<T>[];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue