Skip to content

Commit

Permalink
Use defaults for more types.
Browse files Browse the repository at this point in the history
  • Loading branch information
eyw520 committed Dec 27, 2024
1 parent 6608cc3 commit f9a84da
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export function visitRawTypeReference<R>({
case RawPrimitiveType.long:
return visitor.primitive({
v1: PrimitiveTypeV1.Long,
v2: undefined
v2: PrimitiveTypeV2.long({
default: _default != null ? (_default as number) : undefined
})
});
case RawPrimitiveType.boolean:
return visitor.primitive({
Expand Down Expand Up @@ -131,7 +133,9 @@ export function visitRawTypeReference<R>({
case RawPrimitiveType.bigint:
return visitor.primitive({
v1: PrimitiveTypeV1.BigInteger,
v2: undefined
v2: PrimitiveTypeV2.bigInteger({
default: _default != null ? (_default as string) : undefined
})
});
case RawPrimitiveType.uint:
return visitor.primitive({
Expand Down

0 comments on commit f9a84da

Please sign in to comment.