Key binds for #26
This commit is contained in:
parent
68654d97e7
commit
115728fb7b
4 changed files with 100 additions and 6 deletions
|
|
@ -164,3 +164,8 @@ export class UserSkipError extends Error {
|
|||
}
|
||||
}
|
||||
|
||||
// js can't even implement modulo correctly...
|
||||
export function mod(n: number, m: number): number {
|
||||
return ((n % m) + m) % m;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@ export class YAMLConverter {
|
|||
}
|
||||
|
||||
private static toYamlString(value: any, indentation: number): string {
|
||||
if (value == null) {
|
||||
return 'null';
|
||||
}
|
||||
|
||||
if (typeof value === 'boolean') {
|
||||
return value ? 'true' : 'false';
|
||||
} else if (typeof value === 'number') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue