Improve typing, remove obsolete console.log

This commit is contained in:
pietervdvn 2022-08-17 02:44:09 +02:00
parent 1ec2678e49
commit eee8f1bf33
2 changed files with 2 additions and 3 deletions

View file

@ -78,7 +78,6 @@ export class SubtleButton extends UIElement {
})
const loading = new Lazy(() => new Loading(loadingText) )
return new VariableUiElement(state.map(st => {
console.log("State is: ", st)
if(st === "idle"){
return button
}

View file

@ -151,8 +151,8 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
return res;
}
public static NoNull<T>(array: T[]): T[] {
return array?.filter(o => o !== undefined && o !== null)
public static NoNull<T>(array: T[]): NonNullable<T>[] {
return <any> array?.filter(o => o !== undefined && o !== null)
}
public static Hist(array: string[]): Map<string, number> {