The loadEffect function allows either a URL (string) or an ArrayBuffer, but the types in effekseer.d.ts only allowed string. This PR updates the type to allow either, matching the JavaScript code.
The naming and comments also weren't quite in sync between the two, one naming it data while the other calling it path. Updated the code to consistently use data in this case as it might not be a path. Functionality has been left unchanged.
The
loadEffect
function allows either a URL (string
) or anArrayBuffer
, but the types ineffekseer.d.ts
only allowedstring
. This PR updates the type to allow either, matching the JavaScript code.The naming and comments also weren't quite in sync between the two, one naming it
data
while the other calling itpath
. Updated the code to consistently usedata
in this case as it might not be a path. Functionality has been left unchanged.