Versioned typings for the (internal) JavaScript APIs of Nextcloud used in higher level packages
Перейти к файлу
dependabot[bot] b8f6c11864
chore(deps-dev): Bump typescript from 5.5.4 to 5.6.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.5.4 to 5.6.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.5.4...v5.6.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-12 01:52:41 +00:00
.github ci: Update dependabot-approve-merge.yml 2024-09-02 17:41:45 +02:00
LICENSES ci: Add reuse check 2024-07-08 14:50:29 +02:00
lib chore: Add SPDX header 2024-07-08 14:49:34 +02:00
test chore: Add SPDX header 2024-07-08 14:49:34 +02:00
.gitignore chore: Add SPDX header 2024-07-08 14:49:34 +02:00
.npmignore chore: Add SPDX header 2024-07-08 14:49:34 +02:00
AUTHORS.md chore: Add SPDX header 2024-07-08 14:49:34 +02:00
CHANGELOG.md chore: Add SPDX header 2024-07-08 14:49:34 +02:00
LICENSE
README.md docs: add reuse badge 2024-07-08 14:55:38 +02:00
REUSE.toml chore: Add SPDX header 2024-07-08 14:49:34 +02:00
package-lock.json chore(deps-dev): Bump typescript from 5.5.4 to 5.6.3 2024-10-12 01:52:41 +00:00
package.json fix: correct repo URLs 2024-07-08 14:55:38 +02:00
tsconfig.json

README.md

@nextcloud/typings

REUSE status 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.