@ts-for-gir/cli 3.0.0-beta.4 → 3.0.0-beta.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-for-gir/cli",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.5",
4
4
  "description": "Typescript .d.ts generator from GIR for gjs and node-gtk",
5
5
  "module": "lib/index.js",
6
6
  "type": "module",
@@ -199,7 +199,7 @@ declare global {
199
199
  logDomain: string
200
200
  }
201
201
 
202
- <% if(noDOMLib){ %>
202
+ <% if(!noDOMLib){ %>
203
203
  const console: Console
204
204
  <% } %>
205
205
 
@@ -463,7 +463,7 @@ declare global {
463
463
  decode(input?: ArrayBufferView | ArrayBuffer, options?: TextDecodeOptions): string
464
464
  }
465
465
 
466
- <% if(noDOMLib){ %>
466
+ <% if(!noDOMLib){ %>
467
467
  const TextDecoder: {
468
468
  prototype: TextDecoder
469
469
  new (label?: TextDecoderEncoding, options?: TextDecoderOptions): TextDecoder
@@ -495,13 +495,13 @@ declare global {
495
495
  *
496
496
  * This is potentially more performant than the older encode() method.
497
497
  *
498
- * @param source Text to enconde.
498
+ * @param source Text to encode.
499
499
  * @param destination Buffer where to place the resulting UTF-8 encoded text into.
500
500
  */
501
501
  encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult
502
502
  }
503
503
 
504
- <% if(noDOMLib){ %>
504
+ <% if(!noDOMLib){ %>
505
505
  const TextEncoder: {
506
506
  prototype: TextEncoder
507
507
  new (): TextEncoder