Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nextcloud/typings

Package Overview
Dependencies
Maintainers
8
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextcloud/typings

Nextcloud TypeScript typings

  • 1.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.6K
decreased by-18.5%
Maintainers
8
Weekly downloads
 
Created
Source

@nextcloud/typings

Build Status

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

/// <reference types="@nextcloud/typings" />

declare var OC: Nextcloud.v22.OC | Nextcloud.v23.OC | Nextcloud.v24.OC;

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.

Keywords

FAQs

Package last updated on 28 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc