nextcloud-typings
Versioned typings for the (internal) JavaScript APIs of Nextcloud used in higher level packages.
Usage
You can use this package to verify your API usage is compatible with a range of Nextcloud versions
/// declare ; OC.L10N.translate"app", "text"
The TypeScript compiler will translate the code above to OC.L10N.translate("app", "text");
and throws an error if any of the Nextcloud versions in use for the union type do not exist on all interfaces.