@defold-typescript/types 0.9.0 → 0.11.0

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.
@@ -83,7 +83,7 @@ declare global {
83
83
  * buffer.copy_stream(dststream, 0, srcstream, 0, srcstream.length);
84
84
  * ```
85
85
  */
86
- function copy_stream(dst: Opaque<"bufferstream">, dstoffset: number, src: Opaque<"bufferstream">, srcoffset: number, count: number): void;
86
+ function copy_stream(dst: Opaque<"bufferstream"> & { [index: number]: number }, dstoffset: number, src: Opaque<"bufferstream"> & { [index: number]: number }, srcoffset: number, count: number): void;
87
87
  /**
88
88
  * Create a new data buffer containing a specified set of streams. A data buffer
89
89
  * can contain one or more streams with typed data. This is useful for managing
@@ -150,7 +150,7 @@ declare global {
150
150
  * @param stream_name - the stream name
151
151
  * @returns the data stream
152
152
  */
153
- function get_stream(buffer: Opaque<"buffer">, stream_name: Hash | string): Opaque<"bufferstream">;
153
+ function get_stream(buffer: Opaque<"buffer">, stream_name: Hash | string): Opaque<"bufferstream"> & { [index: number]: number };
154
154
  /**
155
155
  * Creates or updates a metadata array entry on a buffer.
156
156
  * The value type and count given when updating the entry should match those used when first creating it.
@@ -746,7 +746,7 @@ declare global {
746
746
  * const node_position = gui.get(node, "position");
747
747
  * ```
748
748
  */
749
- function get(node: Opaque<"node">, property: string | Hash | Opaque<"constant">, options?: { index?: number }): void;
749
+ function get(node: Opaque<"node">, property: string | Hash | Opaque<"constant">, options?: { index?: number }): unknown;
750
750
  /**
751
751
  * Returns the adjust mode of a node.
752
752
  * The adjust mode defines how the node will adjust itself to screen