wasm-vips 0.0.11 → 0.0.13

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.
Binary file
package/lib/vips.d.ts CHANGED
@@ -121,14 +121,21 @@ declare module Vips {
121
121
  */
122
122
  abstract class EmbindClassHandle<T extends EmbindClassHandle<T>> {
123
123
  /**
124
- * Returns a new handle. It must eventually also be disposed with {@link delete} or
124
+ * Returns a new handle. It must eventually also be disposed with {@link [Symbol.dispose]} or
125
125
  * {@link deleteLater}.
126
126
  * @return A new handle.
127
127
  */
128
128
  clone(): T;
129
129
 
130
+ /**
131
+ * Support for `using ...`.
132
+ * See also: https://github.com/tc39/proposal-explicit-resource-management
133
+ */
134
+ [Symbol.dispose](): void;
135
+
130
136
  /**
131
137
  * Signal that a C++ object is no longer needed and can be deleted.
138
+ * Alias for {@link [Symbol.dispose]}.
132
139
  */
133
140
  delete(): void;
134
141