passing build

This commit is contained in:
2023-08-16 22:23:54 +02:00
parent 89e82f7195
commit 921ba57b5a

View File

@ -250,10 +250,11 @@ export class UserAPI {
options: {[key: string]: string|number} = {}): Event { options: {[key: string]: string|number} = {}): Event {
const pattern = cachedPattern(input, options); const pattern = cachedPattern(input, options);
//@ts-ignore
if(pattern.hasStarted()) { if(pattern.hasStarted()) {
const event = pattern.peek(); const event = pattern.peek();
// Check if event is modified // Check if event is modified
const node = event.modifiedEvent ? event.modifiedEvent : event; const node = event!.modifiedEvent ? event!.modifiedEvent : event;
const channel = (options.channel ? options.channel : 0) as number; const channel = (options.channel ? options.channel : 0) as number;
const velocity = (options.velocity ? options.velocity : 100) as number; const velocity = (options.velocity ? options.velocity : 100) as number;
@ -274,8 +275,9 @@ export class UserAPI {
} }
// Remove old modified event // Remove old modified event
if(event.modifiedEvent) event.modifiedEvent = undefined; if(event!.modifiedEvent) event!.modifiedEvent = undefined;
} }
//@ts-ignore
return pattern.next(); return pattern.next();
} }