@iobroker/types
Advanced tools
Comparing version 6.0.1-alpha.0-20240525-56d9e4a2e to 6.0.1-alpha.0-20240529-9dbeeb628
@@ -123,35 +123,35 @@ import type * as os from 'node:os'; | ||
: // Instance and Adapter must come before meta or `system.adapter.admin` will resolve to MetaObject | ||
T extends ObjectIDs.Instance | ||
? InstanceObject | ||
: T extends ObjectIDs.Adapter | ||
? AdapterObject | ||
: T extends ObjectIDs.Channel | ||
? ChannelObject | ||
: T extends ObjectIDs.Meta | ||
? MetaObject | ||
: T extends ObjectIDs.Misc | ||
? AdapterScopedObject | ||
: T extends ObjectIDs.ScriptOrChannel | ||
? ScriptObject | ChannelObject | ||
: T extends ObjectIDs.Enum | ||
? EnumObject | ||
: T extends ObjectIDs.Group | ||
? GroupObject | ||
: T extends ObjectIDs.User | ||
? UserObject | ||
: T extends ObjectIDs.Host | ||
? HostObject | ||
: T extends ObjectIDs.Design | ||
? DesignObject | ||
: T extends ObjectIDs.Repository | ||
? RepositoryObject | ||
: T extends ObjectIDs.SystemConfig | ||
? SystemConfigObject | ||
: T extends ObjectIDs.Config | ||
? OtherObject & { type: 'config' } | ||
: T extends ObjectIDs.AdapterScoped | ||
? AdapterScopedObject | ||
: Read extends 'read' | ||
? ioBroker.Object | ||
: AnyObject; | ||
T extends ObjectIDs.Instance | ||
? InstanceObject | ||
: T extends ObjectIDs.Adapter | ||
? AdapterObject | ||
: T extends ObjectIDs.Channel | ||
? ChannelObject | ||
: T extends ObjectIDs.Meta | ||
? MetaObject | ||
: T extends ObjectIDs.Misc | ||
? AdapterScopedObject | ||
: T extends ObjectIDs.ScriptOrChannel | ||
? ScriptObject | ChannelObject | ||
: T extends ObjectIDs.Enum | ||
? EnumObject | ||
: T extends ObjectIDs.Group | ||
? GroupObject | ||
: T extends ObjectIDs.User | ||
? UserObject | ||
: T extends ObjectIDs.Host | ||
? HostObject | ||
: T extends ObjectIDs.Design | ||
? DesignObject | ||
: T extends ObjectIDs.Repository | ||
? RepositoryObject | ||
: T extends ObjectIDs.SystemConfig | ||
? SystemConfigObject | ||
: T extends ObjectIDs.Config | ||
? OtherObject & { type: 'config' } | ||
: T extends ObjectIDs.AdapterScoped | ||
? AdapterScopedObject | ||
: Read extends 'read' | ||
? ioBroker.Object | ||
: AnyObject; | ||
@@ -1156,39 +1156,39 @@ type Languages = 'en' | 'de' | 'ru' | 'pt' | 'nl' | 'fr' | 'it' | 'es' | 'pl' | 'uk' | 'zh-cn'; | ||
: View extends 'adapter' | ||
? AdapterObject | ||
: View extends 'instance' | ||
? InstanceObject | ||
: View extends 'meta' | ||
? MetaObject | ||
: View extends 'device' | ||
? DeviceObject | ||
: View extends 'channel' | ||
? ChannelObject | ||
: View extends 'state' | ||
? StateObject | ||
: View extends 'folder' | ||
? FolderObject | ||
: View extends 'enum' | ||
? EnumObject | ||
: View extends 'script' | ||
? ScriptObject | ||
: View extends 'group' | ||
? GroupObject | ||
: View extends 'user' | ||
? UserObject | ||
: View extends 'chart' | ||
? ChartObject | ||
: View extends 'schedule' | ||
? ScheduleObject | ||
: View extends 'config' | ||
? | ||
| RepositoryObject | ||
| SystemConfigObject | ||
| (OtherObject & { | ||
type: 'config'; | ||
}) | ||
: View extends 'custom' | ||
? NonNullable<StateObject['common']['custom']> | ||
: ioBroker.Object | ||
? AdapterObject | ||
: View extends 'instance' | ||
? InstanceObject | ||
: View extends 'meta' | ||
? MetaObject | ||
: View extends 'device' | ||
? DeviceObject | ||
: View extends 'channel' | ||
? ChannelObject | ||
: View extends 'state' | ||
? StateObject | ||
: View extends 'folder' | ||
? FolderObject | ||
: View extends 'enum' | ||
? EnumObject | ||
: View extends 'script' | ||
? ScriptObject | ||
: View extends 'group' | ||
? GroupObject | ||
: View extends 'user' | ||
? UserObject | ||
: View extends 'chart' | ||
? ChartObject | ||
: View extends 'schedule' | ||
? ScheduleObject | ||
: View extends 'config' | ||
? | ||
| RepositoryObject | ||
| SystemConfigObject | ||
| (OtherObject & { | ||
type: 'config'; | ||
}) | ||
: View extends 'custom' | ||
? NonNullable<StateObject['common']['custom']> | ||
: ioBroker.Object | ||
: any; | ||
} | ||
} |
{ | ||
"name": "@iobroker/types", | ||
"version": "6.0.1-alpha.0-20240525-56d9e4a2e", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
}, | ||
"keywords": [ | ||
"ioBroker" | ||
], | ||
"author": "foxriver76 <moritz.heusinger@gmail.com>", | ||
"contributors": [ | ||
"foxriver76 <moritz.heusinger@gmail.com>" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ioBroker/ioBroker.js-controller/tree/master/packages/types-public" | ||
}, | ||
"devDependencies": { | ||
"tsd": "^0.24.1" | ||
}, | ||
"scripts": { | ||
"build": "ts-node build.ts", | ||
"test": "tsd" | ||
}, | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"build/", | ||
"index.d.ts", | ||
"public.d.ts", | ||
"LICENSE" | ||
], | ||
"tsd": { | ||
"compilerOptions": { | ||
"types": [ | ||
"@iobroker/types" | ||
] | ||
} | ||
}, | ||
"gitHead": "e5a08b9ec08b0d05506030ab985653fb9c00a3c4" | ||
"name": "@iobroker/types", | ||
"version": "6.0.1-alpha.0-20240529-9dbeeb628", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
}, | ||
"keywords": [ | ||
"ioBroker" | ||
], | ||
"author": "foxriver76 <moritz.heusinger@gmail.com>", | ||
"contributors": [ | ||
"foxriver76 <moritz.heusinger@gmail.com>" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ioBroker/ioBroker.js-controller/tree/master/packages/types-public" | ||
}, | ||
"devDependencies": { | ||
"tsd": "^0.24.1" | ||
}, | ||
"scripts": { | ||
"build": "ts-node build.ts", | ||
"test": "tsd" | ||
}, | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"build/", | ||
"index.d.ts", | ||
"public.d.ts", | ||
"LICENSE" | ||
], | ||
"tsd": { | ||
"compilerOptions": { | ||
"types": [ | ||
"@iobroker/types" | ||
] | ||
} | ||
}, | ||
"gitHead": "d2cedb0986ea9cbf250d1ce4eea775af36f80c7a" | ||
} |
163855