hazzard993 / love-typescript-definitions

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

love.filesystem.write should also accept string #45

Closed nikeinikei closed 4 years ago

nikeinikei commented 4 years ago

According to the official api the function https://love2d.org/wiki/love.filesystem.write can accept both string and Data however in the definitions (https://github.com/hazzard993/love-typescript-definitions/blob/master/typings/love.filesystem/functions.d.ts#L465) it only accepts Data

hazzard993 commented 4 years ago

Thanks a bunch for reporting that! I've released 0.20.2 which adds this variant to love.filesystem.write