This package has been deprecated

Author message:

use @nextcloud/typings

nextcloud-typings
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

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

/// <reference types="nextcloud-typings" />
 
declare var OC: Nextcloud.v16.OC | Nextcloud.v17.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.

/nextcloud-typings/

    Package Sidebar

    Install

    npm i nextcloud-typings

    Weekly Downloads

    0

    Version

    0.0.10

    License

    GPL-3.0-or-later

    Unpacked Size

    39.8 kB

    Total Files

    11

    Last publish

    Collaborators

    • susnux
    • pytal
    • gretadoci
    • mejo-
    • artonge
    • max-nextcloud
    • st3iny
    • marcoambrosinii
    • icewind1991
    • skjnldsv
    • christophwurst
    • juliushaertl
    • nickvergessen
    • georgehrke