|
1 | | -declare global { |
2 | | - /** |
3 | | - * Native Java Class Object (instance of {@link https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html java.lang.Class}) |
4 | | - */ |
5 | | - type JavaClass = object; |
6 | | - /** |
7 | | - * Native Java BigDecimal (instance of {@link https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/math/BigDecimal.html java.math.BigDecimal}) |
8 | | - */ |
9 | | - type JavaBigDecimal = object; |
10 | | - /** |
11 | | - * Native Java Set Object (instance of {@link https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html java.util.Set}) |
12 | | - */ |
13 | | - type JavaSet = object; |
14 | | - /** |
15 | | - * Native Java List Object (instance of {@link https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html java.util.List}) |
16 | | - */ |
17 | | - type JavaList = object; |
18 | | - /** |
19 | | - * Native Java Map Object (implementation of {@link https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html java.util.Map}) |
20 | | - */ |
21 | | - type JavaMap = object; |
22 | | - /** |
23 | | - * Native Java Instant Object (instance of {@link https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Instant.html java.time.Instant}) |
24 | | - */ |
25 | | - type JavaInstant = object; |
26 | | - /** |
27 | | - * Native Java ZonedDateTime Object (instance of {@link https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/ZonedDateTime.html java.time.ZonedDateTime}) |
28 | | - */ |
29 | | - type JavaZonedDateTime = object; |
30 | | - /** |
31 | | - * Native Java openHAB State (instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/types/state org.openhab.core.types.State}) |
32 | | - */ |
33 | | - type HostState = object; |
34 | | - /** |
35 | | - * Native Java openHAB Item (instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/items/item org.openhab.core.items.Item}) |
36 | | - */ |
37 | | - type HostItem = object; |
38 | | - /** |
39 | | - * Native Javea openHAB Rule (instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/automation/rule org.openhab.core.automation.Rule}) |
40 | | - */ |
41 | | - type HostRule = object; |
42 | | - /** |
43 | | - * Native Java openHAB Trigger (instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/automation/trigger org.openhab.core.automation.Trigger}) |
44 | | - */ |
45 | | - type HostTrigger = object; |
46 | | - /** |
47 | | - * Native Java openHAB Thing (instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/thing/thing org.openhab.core.thing.Thing}) |
48 | | - */ |
49 | | - type HostThing = object; |
50 | | - /** |
51 | | - * Native Java openHAB GroupFunction (instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/items/groupfunction org.openhab.core.items.GroupFunction}) |
52 | | - */ |
53 | | - type HostGroupFunction = object; |
54 | | - /** |
55 | | - * Native Java openHAB QuantityType (instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/library/types/quantitytype org.openhab.core.library.types.QuantityType}) |
56 | | - */ |
57 | | - type QuantityType = object; |
| 1 | +/// <reference path="./java.d.ts" /> |
58 | 2 |
|
| 3 | +declare global { |
59 | 4 | namespace items { |
60 | 5 | type Item = InstanceType<typeof import('./items/items').Item>; |
61 | 6 | type ItemConfig = import('./items/items').ItemConfig; |
62 | 7 | type ItemMetadata = InstanceType<typeof import('./items/metadata').ItemMetadata>; |
63 | 8 | type TimeSeries = InstanceType<typeof import('./items/time-series')>; |
64 | | - type ItemPersistence = InstanceType<typeof import('./items/item-persistence')>; |
65 | | - type ItemSemantics = InstanceType<typeof import('./items/item-semantics')>; |
66 | | - type PersistedItem = InstanceType<typeof import('./items/item-persistence').PersistedItem>; |
67 | | - type PersistedState = InstanceType<typeof import('./items/item-persistence').PersistedState>; |
| 9 | + type ItemPersistence = InstanceType<typeof import('./items/items').ItemPersistence>; |
| 10 | + type ItemSemantics = InstanceType<typeof import('./items/items').ItemSemantics>; |
| 11 | + type PersistedItem = InstanceType<typeof import('./items/items').PersistedItem>; |
| 12 | + type PersistedState = InstanceType<typeof import('./items/items').PersistedState>; |
68 | 13 | } |
69 | 14 |
|
70 | 15 | namespace time { |
|
0 commit comments