1.8.0 • Published 2 months ago

@nextcloud/typings v1.8.0

Weekly downloads
9,697
License
GPL-3.0-or-later
Repository
github
Last release
2 months 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.8.0

2 months ago

1.7.0

11 months ago

1.6.0

1 year ago

1.5.0

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.0.0

4 years ago

0.2.3

4 years ago

0.2.4

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago