You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
freephoenix888@freephoenix888:~/Programming/deep/capacitor-device$ typescript-json-schema ./src/device-info.ts DeviceInfo
{
"$schema": "http://json-schema.org/draft-07/schema#",
"anyOf": [
{
"$ref": "#/definitions/DeviceInfo_1"
},
{
"$ref": "#/definitions/BatteryInfo"
},
{
"properties": {
"languageCode": {
"type": "string"
}
},
"type": "object"
},
{
"properties": {
"languageTag": {
"type": "string"
}
},
"type": "object"
}
],
"definitions": {
"BatteryInfo": {
"properties": {
"batteryLevel": {
"description": "A percentage (0 to 1) indicating how much the battery is charged.",
"type": "number"
},
"isCharging": {
"description": "Whether the device is charging.",
"type": "boolean"
}
},
"type": "object"
},
"DeviceInfo_1": {
"properties": {
"diskFree": {
"description": "How much free disk space is available on the normal data storage\npath for the os, in bytes.\n\nOn Android it returns the free disk space on the \"system\"\npartition holding the core Android OS.\nOn iOS this value is not accurate.",
"type": "number"
},
"diskTotal": {
"description": "The total size of the normal data storage path for the OS, in bytes.\n\nOn Android it returns the disk space on the \"system\"\npartition holding the core Android OS.",
"type": "number"
},
"isVirtual": {
"description": "Whether the app is running in a simulator/emulator.",
"type": "boolean"
},
"manufacturer": {
"description": "The manufacturer of the device.",
"type": "string"
},
"memUsed": {
"description": "Approximate memory used by the current app, in bytes. Divide by\n1048576 to get the number of MBs used.",
"type": "number"
},
"model": {
"description": "The device model. For example, \"iPhone13,4\".",
"type": "string"
},
"name": {
"description": "The name of the device. For example, \"John's iPhone\".\n\nThis is only supported on iOS and Android 7.1 or above.",
"type": "string"
},
"operatingSystem": {
"$ref": "#/definitions/OperatingSystem",
"description": "The operating system of the device."
},
"osVersion": {
"description": "The version of the device OS.",
"type": "string"
},
"platform": {
"description": "The device platform (lowercase).",
"enum": [
"android",
"ios",
"web"
],
"type": "string"
},
"realDiskFree": {
"description": "How much free disk space is available on the normal data storage, in bytes.",
"type": "number"
},
"realDiskTotal": {
"description": "The total size of the normal data storage path, in bytes.",
"type": "number"
},
"webViewVersion": {
"description": "The web view browser version",
"type": "string"
}
},
"type": "object"
},
"OperatingSystem": {
"enum": [
"android",
"ios",
"mac",
"unknown",
"windows"
],
"type": "string"
}
}
}
The text was updated successfully, but these errors were encountered:
Search terms
expand, imported, types
Question
Code: https://github.com/deep-foundation/capacitor-device/blob/6d6eae584c3567c5e381fc8a68f733e157d1ab85/src/device-info.ts#L1
I get such documentation:
I would like typedoc to expand those types.
Example:
Is this possible??
Additional information
typescript-json-schema
is able to find all the actual properties of DeviceInfo and their descriptionsThe text was updated successfully, but these errors were encountered: