@webxdc/types
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "@webxdc/types", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "TypeScript type definitions for webxdc", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/webxdc/webxdc-types#readme", |
@@ -1,2 +0,2 @@ | ||
# Types for webxdc | ||
# Types for webxdc [![npm package](https://img.shields.io/npm/v/@webxdc/types.svg)](https://npmjs.com/package/@webxdc/types) | ||
@@ -3,0 +3,0 @@ When you develop a [webxdc app](https://webxdc.org), you use the [webxdc |
@@ -17,18 +17,2 @@ type SendingStatusUpdate<PayloadType> = { | ||
summary?: string; | ||
}; | ||
type ReceivedStatusUpdate<PayloadType> = { | ||
/** the payload, deserialized json */ | ||
payload: PayloadType; | ||
/** the serial number of this update. Serials are larger than 0 and newer serials have higher numbers */ | ||
serial: number; | ||
/** the maximum serial currently known */ | ||
max_serial: number; | ||
/** optional, short, informational message. */ | ||
info?: string; | ||
/** optional, if the Webxdc creates a document, this is the name of the document; | ||
* not set if the Webxdc does not create a document */ | ||
document?: string; | ||
/** optional, short text, shown beside the webxdc's icon. */ | ||
summary?: string; | ||
/** optional, a string that specifies a relative URL. | ||
@@ -49,2 +33,9 @@ When a receiver starts the webxdc app based on the update object | ||
type ReceivedStatusUpdate<PayloadType> = SendingStatusUpdate<PayloadType> & { | ||
/** the serial number of this update. Serials are larger than 0 and newer serials have higher numbers */ | ||
serial: number; | ||
/** the maximum serial currently known */ | ||
max_serial: number; | ||
}; | ||
type XDCFile = { | ||
@@ -51,0 +42,0 @@ /** name of the file, including extension */ |
12316
156