Type Definitions for Lens Studio

This could be a huge improvement for scripting in Lens Studio. The built-in script editor has some type definitions, but it breaks as soon as you reassign anything to a variable.

It hasn’t been updated in 17 months, and it doesn’t seem like it was ever a complete definition, but it could be a good thing to build on. I think ideally the typedefs would be parsed from the official docs or something that would prevent us from needing to manually update them. The API docs seem pretty organized, so I think it would be pretty easy to write a web scraper with Puppeteer

https://lensstudio.snapchat.com/api/

1 Like