@ts-defold/types 1.2.62 → 1.2.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +7 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /// <reference types="lua-types/5.1" />
3
3
  /// <reference types="@typescript-to-lua/language-extensions" />
4
4
 
5
- // DEFOLD. stable version 1.9.7 (db7871a56bcc586addb80d017aaaaf812e6f8395)
5
+ // DEFOLD. stable version 1.9.8 (a9247e38b24ba1c1ed5913c4049d9a4083a314a7)
6
6
  // =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
7
7
 
8
8
 
@@ -6780,11 +6780,14 @@ The response data. Contains the fields:
6780
6780
 
6781
6781
  `status`: the status of the response
6782
6782
  `response`: the response data (if not saved on disc)
6783
- `headers`: all the returned headers
6783
+ `headers`: all the returned headers (if status is 200 or 206)
6784
6784
  `path`: the stored path (if saved to disc)
6785
6785
  `error`: if any unforeseen errors occurred (e.g. file I/O)
6786
6786
  `bytes_received`: the amount of bytes received/sent for a request, only if option `report_progress` is true
6787
6787
  `bytes_total`: the total amount of bytes for a request, only if option `report_progress` is true
6788
+ `range_start`: the start offset into the requested file
6789
+ `range_end`: the end offset into the requested file (inclusive)
6790
+ `document_size`: the full size of the requested file
6788
6791
 
6789
6792
  * @param headers optional table with custom headers
6790
6793
  * @param post_data optional data to send
@@ -7798,7 +7801,7 @@ declare namespace collectionfactory {
7798
7801
  * @param scale uniform scaling to apply to the newly spawned collection (must be greater than 0).
7799
7802
  * @return ids a table mapping the id:s from the collection to the new instance id:s
7800
7803
  */
7801
- export function create(url: string | hash | url, position?: vmath.vector3, rotation?: vmath.quaternion, properties?: any, scale?: number): any
7804
+ export function create(url: string | hash | url, position?: vmath.vector3, rotation?: vmath.quaternion, properties?: any, scale?: number | vmath.vector3): any
7802
7805
 
7803
7806
  /**
7804
7807
  * This returns status of the collection factory.
@@ -8082,7 +8085,7 @@ declare namespace label {
8082
8085
  * @param url the label that should have a constant set
8083
8086
  * @param text the text
8084
8087
  */
8085
- export function set_text(url: string | hash | url, text: string): void
8088
+ export function set_text(url: string | hash | url, text: string | number): void
8086
8089
 
8087
8090
  /**
8088
8091
  * The leading of the label. This value is used to scale the line spacing of text.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-defold/types",
3
- "version": "1.2.62",
3
+ "version": "1.2.64",
4
4
  "description": "TypeScript definitions for Defold",
5
5
  "repository": "github:ts-defold/types",
6
6
  "keywords": [