@enonic-types/lib-app
Advanced tools
Comparing version 7.11.0-B3 to 7.11.0-B4
@@ -104,7 +104,7 @@ /** | ||
export declare function hasVirtual(params: HasVirtualApplicationParams): boolean; | ||
export interface HasRealApplicationParams { | ||
export interface GetApplicationModeParams { | ||
key: string; | ||
} | ||
/** | ||
* Checks if there is a real app with the app key. | ||
* Fetches a mode of the app with the app key. | ||
* | ||
@@ -114,4 +114,4 @@ * @param {object} params JSON with the parameters. | ||
* | ||
* @returns {boolean} result. | ||
* @returns {string} application mode. | ||
*/ | ||
export declare function hasReal(params: HasRealApplicationParams): boolean; | ||
export declare function getApplicationMode(params: GetApplicationModeParams): string | null; |
{ | ||
"name": "@enonic-types/lib-app", | ||
"version": "7.11.0-B3", | ||
"version": "7.11.0-B4", | ||
"description": "Type definitions for lib-app.", | ||
@@ -5,0 +5,0 @@ "types": "app.d.ts", |
@@ -34,8 +34,7 @@ # Enonic XP lib-app TS types | ||
```diff | ||
```json | ||
{ | ||
"compilerOptions": { | ||
"types": [ | ||
+ "@enonic-types/global" | ||
"@enonic-types/lib-app" | ||
"@enonic-types/global" | ||
] | ||
@@ -70,12 +69,9 @@ } | ||
```diff | ||
```json | ||
{ | ||
"compilerOptions": { | ||
"types": [ | ||
"@enonic-types/lib-app" | ||
] | ||
+ "baseUrl": "./", | ||
+ "paths": { | ||
+ "/lib/xp/app": ["node_modules/@enonic-types/lib-app"], | ||
+ } | ||
"baseUrl": "./", | ||
"paths": { | ||
"/lib/xp/app": ["node_modules/@enonic-types/lib-app"] | ||
} | ||
} | ||
@@ -82,0 +78,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5639
94