Skip to content

Commit

Permalink
Add Nextcloud 20 typings
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Aug 31, 2020
1 parent a81d296 commit 6a1676c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You can use this package to verify your API usage is compatible with a range of
```ts
/// <reference types="nextcloud-typings" />

declare var OC: Nextcloud.v16.OC | Nextcloud.v17.OC | Nextcloud.v18.OC | Nextcloud.v19.OC;
declare var OC: Nextcloud.v17.OC | Nextcloud.v18.OC | Nextcloud.v19.OC | Nextcloud.v20.OC;

OC.L10N.translate("app", "text")
```
Expand Down
1 change: 1 addition & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/// <reference path="v17/OC.d.ts" />
/// <reference path="v18/OC.d.ts" />
/// <reference path="v19/OC.d.ts" />
/// <reference path="v20/OC.d.ts" />
15 changes: 15 additions & 0 deletions lib/v20/OC.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
declare namespace Nextcloud.v20 {

interface OC extends Nextcloud.v19.OC {

}

interface OCP extends Nextcloud.v19.OCP {

}

interface WindowWithGlobals extends Nextcloud.Common.DayMonthConstants, Window {

}

}

0 comments on commit 6a1676c

Please sign in to comment.