@item-enonic-types/global
v7.15.0
Published
Global variables and functions type definition.
Readme
Global types for Enonic XP
Note There is also an official package for Global types for XP.
This library provides backwards compatibility for the old enonic-types package while moving to the new types provided by Enonic.
Contents
The following global types:
XP.RequestXP.ErrorRequestXP.CustomSelectorServiceParams
XP.ResponseXP.WebSocketResponseXP.CustomSelectorServiceResponseBodyXP.CustomSelectorServiceResponseHit
XP.MacroContextXP.WebSocketEvent
Use
To use these global types you need to update the types field in your tsconfig.json with this library.
{
"baseUrl": "./",
"paths": {
"/lib/xp/*": ["node_modules/@enonic-types/lib-*"]
},
+ "types": [
+ "@item-enonic-types/global"
+ ]
}