@defold-typescript/types 0.18.4 → 0.18.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": "@defold-typescript/types",
3
- "version": "0.18.4",
3
+ "version": "0.18.5",
4
4
  "description": "TypeScript types for the Defold engine's Lua APIs.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/lifecycle.ts CHANGED
@@ -559,7 +559,7 @@ export type ScriptPropertiesOf<T extends { properties?: object }> = NonNullable<
559
559
  * `fixed_update`, `late_update`, `on_message`, `on_input`, `final`,
560
560
  * `on_reload`.
561
561
  *
562
- * Scaffold it with the `defold-script` / `defold-script-typed` VSCode snippets
562
+ * Scaffold it with the `def-ts-defineScript-inferred-self` / `def-ts-defineScript-typed-self` VSCode snippets
563
563
  * from `defold-typescript init`.
564
564
  *
565
565
  * @param hooks - the `.script` lifecycle hook table to type and return.
@@ -594,7 +594,7 @@ export function defineScript<TProps extends object = Record<never, never>, TInit
594
594
  * the rest, all optional: `init`, `update`, `on_message`, `on_input`, `final`,
595
595
  * `on_reload`.
596
596
  *
597
- * Scaffold it with the `defold-gui` / `defold-gui-typed` VSCode snippets from
597
+ * Scaffold it with the `def-ts-defineGuiScript-inferred-self` / `def-ts-defineGuiScript-typed-self` VSCode snippets from
598
598
  * `defold-typescript init`.
599
599
  *
600
600
  * @param hooks - the `.gui_script` lifecycle hook table to type and return.
@@ -628,7 +628,7 @@ export function defineGuiScript<TProps extends object = Record<never, never>, TI
628
628
  * receive input. It accepts the rest of the set, all optional: `init`,
629
629
  * `update`, `fixed_update`, `late_update`, `on_message`, `final`, `on_reload`.
630
630
  *
631
- * Scaffold it with the `defold-render` / `defold-render-typed` VSCode snippets
631
+ * Scaffold it with the `def-ts-defineRenderScript-inferred-self` / `def-ts-defineRenderScript-typed-self` VSCode snippets
632
632
  * from `defold-typescript init`.
633
633
  *
634
634
  * @param hooks - the `.render_script` lifecycle hook table to type and return.
@@ -4,6 +4,11 @@
4
4
  // so these strengthen the rendered signature while the ref-doc prose stays.
5
5
  export interface SignatureOverride {
6
6
  signatures: string[];
7
+ // Optional per-overload descriptions, parallel to `signatures`: entry `i`
8
+ // overrides row `i`'s rendered doc prose; a `null` entry or an array shorter
9
+ // than `signatures` keeps the ref-doc fixture description for those rows. Every
10
+ // existing override omits `docs` and renders exactly as before.
11
+ docs?: (string | null)[];
7
12
  }
8
13
 
9
14
  // An FQN (`io.open`, `file:read`, …) maps to one override. An element with