hazzard993 / love-typescript-definitions

Write LÖVE 2D projects with TypeScript
MIT License
116 stars 11 forks source link

Develop #43

Closed hazzard993 closed 4 years ago

hazzard993 commented 4 years ago
+ love.isVersionCompatible(version);
+ love.isVersionCompatible(major, minor, revision);
// define a new event
declare interface CustomHandlers {
  handler: (this: void, a: string) => void;
}

// handle event
love.handlers.handler = a => print(a);

// dispatch event
love.event.push("handler", "Hello World");