@fern-api/go-dynamic-snippets 1.64.3 → 1.65.1

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/dist/index.d.cts CHANGED
@@ -22,10 +22,10 @@ declare class DynamicTypeInstantiationMapper {
22
22
  */
23
23
  private resolveAliasTarget;
24
24
  /**
25
- * Go cannot take the address of an `any` value directly, so a pointer to an
26
- * unknown alias is materialized through a local variable.
25
+ * Go cannot take the address of an alias value directly (e.g. `any` or a pointer
26
+ * alias), so a pointer to the alias is materialized through a local variable.
27
27
  */
28
- private convertUnknownAliasPointer;
28
+ private convertAliasPointer;
29
29
  private unwrapOptionalOrNullable;
30
30
  convertToPointerIfPossible(args: DynamicTypeInstantiationMapper.Args): go.TypeInstantiation;
31
31
  private convertList;
@@ -131,6 +131,13 @@ declare class DynamicTypeMapper {
131
131
  * (e.g. a nullable primitive like *time.Time). Traverses alias chains.
132
132
  */
133
133
  isAliasToPointerType(typeId: FernIr.dynamic.TypeId): boolean;
134
+ /**
135
+ * Returns true if an optional reference to the alias should not add another pointer because
136
+ * the alias already generates as a pointer. With `legacyNullableAliasPointers`, only date and
137
+ * datetime aliases omit the pointer because their fields are marshaled through *time.Time.
138
+ */
139
+ omitsPointerForAlias(typeId: FernIr.dynamic.TypeId): boolean;
140
+ private resolvePointerAliasTarget;
134
141
  /**
135
142
  * Lists, maps, sets, and unknown values are already nil-able, so an optional/nullable
136
143
  * wrapper around them renders without a pointer.
package/dist/index.d.ts CHANGED
@@ -22,10 +22,10 @@ declare class DynamicTypeInstantiationMapper {
22
22
  */
23
23
  private resolveAliasTarget;
24
24
  /**
25
- * Go cannot take the address of an `any` value directly, so a pointer to an
26
- * unknown alias is materialized through a local variable.
25
+ * Go cannot take the address of an alias value directly (e.g. `any` or a pointer
26
+ * alias), so a pointer to the alias is materialized through a local variable.
27
27
  */
28
- private convertUnknownAliasPointer;
28
+ private convertAliasPointer;
29
29
  private unwrapOptionalOrNullable;
30
30
  convertToPointerIfPossible(args: DynamicTypeInstantiationMapper.Args): go.TypeInstantiation;
31
31
  private convertList;
@@ -131,6 +131,13 @@ declare class DynamicTypeMapper {
131
131
  * (e.g. a nullable primitive like *time.Time). Traverses alias chains.
132
132
  */
133
133
  isAliasToPointerType(typeId: FernIr.dynamic.TypeId): boolean;
134
+ /**
135
+ * Returns true if an optional reference to the alias should not add another pointer because
136
+ * the alias already generates as a pointer. With `legacyNullableAliasPointers`, only date and
137
+ * datetime aliases omit the pointer because their fields are marshaled through *time.Time.
138
+ */
139
+ omitsPointerForAlias(typeId: FernIr.dynamic.TypeId): boolean;
140
+ private resolvePointerAliasTarget;
134
141
  /**
135
142
  * Lists, maps, sets, and unknown values are already nil-able, so an optional/nullable
136
143
  * wrapper around them renders without a pointer.