1.9.1 • Published 1 year ago

@nextcloud/typings v1.9.1

Weekly downloads
9,697
License
GPL-3.0-or-later
Repository
github
Last release
1 year ago

@nextcloud/typings

NPM package License Open issues

Versioned typings for the (internal) JavaScript APIs of Nextcloud used in higher level packages.

Installation

npm i -S @nextcloud/typings

The typings have to be in the dependencies section, not devDependencies. See https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#dependencies for details.

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.v26.OC | Nextcloud.v27.OC | Nextcloud.v28.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.

1.9.1

1 year ago

1.9.0

1 year ago

1.8.0

1 year ago

1.7.0

2 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.0.0

5 years ago

0.2.3

5 years ago

0.2.4

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.7

5 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago