{
  "slug": "pulumi-node-js-component-schema-inference-supports-partial-t-e831bcc8ced6",
  "title": "Pulumi Node.js component schema inference supports `Partial<T>`",
  "tools": [
    "pulumi"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-17T23:31:37.000Z",
  "announced_at": "2026-02-17T23:31:37.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When inferring a Node.js component schema from arguments, wrap the property type in `Partial<T>` to generate a corresponding type with all properties optional.",
    "examples": [
      "interface SomeType {\n    a: string;\n}\n\nexport interface MyComponentArgs {\n    regularType?: pulumi.Input<SomeType>;\n    partialType?: pulumi.Input<Partial<SomeType>>;\n}"
    ],
    "gotchas": [
      "Version: v3.221.0",
      "Partial<T> (required): Wrap the property type `T`; inferred type properties are all optional.",
      "T (required): The source interface or type whose properties are made optional.",
      "pulumi.Input<T>: Supported wrapper around the argument type in the documented example; `partialType` itself is optional because it uses `?`.",
      "Prerequisite: For source-based component schema inference, define component arguments as a TypeScript interface reachable through normal imports, and use `pulumi.Input` types for arguments.",
      "Prerequisite: Node.js runtime and Pulumi CLI are listed as component-building prerequisites."
    ]
  },
  "why_it_matters": "Infer a component schema from Node.js component arguments that use `Partial<T>`.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.221.0",
    "https://github.com/pulumi/pulumi/pull/21802",
    "https://www.pulumi.com/docs/iac/guides/building-extending/packages/source-based-plugin/",
    "https://www.pulumi.com/docs/iac/guides/building-extending/components/build-a-component/"
  ],
  "rank": 0.91028,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-c119f0399b8aa4b3-5:gate",
    "evidence_hash": "36f5c964dc0228362254d87e84a3d1410de787cb617a2a9ef87f431b11c2c157"
  },
  "review": {
    "draft_hash": "874f171b6b54f533c3e61223fbab8d7ae1b0624ec753112789c751152d5f3ff9",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.91 >= 0.9; 2 needed) and Jev gave 0.62 (>= 0.6 needed)."
  }
}
