@fern-api/go-dynamic-snippets 1.46.0 → 1.46.2
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.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -57,6 +57,18 @@ declare class DynamicTypeMapper {
|
|
|
57
57
|
context: DynamicSnippetsGeneratorContext;
|
|
58
58
|
});
|
|
59
59
|
convert(args: DynamicTypeMapper.Args): go.Type;
|
|
60
|
+
private convertOptionalOrNullable;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the type reference resolves to a named alias that already
|
|
63
|
+
* generates as a pointer type in Go. Also handles the collapse case where
|
|
64
|
+
* optional(nullable(named(alias))) should not produce a double pointer.
|
|
65
|
+
*/
|
|
66
|
+
private isPointerAliasReference;
|
|
67
|
+
/**
|
|
68
|
+
* Checks if a named type is an alias that already generates as a pointer in Go
|
|
69
|
+
* (e.g. a nullable primitive like *time.Time). Traverses alias chains.
|
|
70
|
+
*/
|
|
71
|
+
private isAliasToPointerType;
|
|
60
72
|
private convertLiteral;
|
|
61
73
|
private convertNamed;
|
|
62
74
|
private convertUnknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -57,6 +57,18 @@ declare class DynamicTypeMapper {
|
|
|
57
57
|
context: DynamicSnippetsGeneratorContext;
|
|
58
58
|
});
|
|
59
59
|
convert(args: DynamicTypeMapper.Args): go.Type;
|
|
60
|
+
private convertOptionalOrNullable;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the type reference resolves to a named alias that already
|
|
63
|
+
* generates as a pointer type in Go. Also handles the collapse case where
|
|
64
|
+
* optional(nullable(named(alias))) should not produce a double pointer.
|
|
65
|
+
*/
|
|
66
|
+
private isPointerAliasReference;
|
|
67
|
+
/**
|
|
68
|
+
* Checks if a named type is an alias that already generates as a pointer in Go
|
|
69
|
+
* (e.g. a nullable primitive like *time.Time). Traverses alias chains.
|
|
70
|
+
*/
|
|
71
|
+
private isAliasToPointerType;
|
|
60
72
|
private convertLiteral;
|
|
61
73
|
private convertNamed;
|
|
62
74
|
private convertUnknown;
|