newBlob.lua 417 B

12345678910111213141516171819202122
  1. return {
  2. summary = 'Create a new Blob from a file.',
  3. description = 'Creates a new Blob that contains the contents of a file.',
  4. arguments = {
  5. {
  6. name = 'filename',
  7. type = 'string',
  8. description = 'The file to load.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'blob',
  14. type = 'Blob',
  15. description = 'The new Blob.'
  16. }
  17. },
  18. related = {
  19. 'lovr.data.newBlob',
  20. 'Blob'
  21. }
  22. }