Skip to content

Commit

Permalink
Merge pull request #932 from polywrap/fix/json-binding
Browse files Browse the repository at this point in the history
Fix: add "Types." to Json in ts binding
  • Loading branch information
Niraj-Kamdar authored Jun 21, 2022
2 parents 2a8a87d + 315a6b1 commit 2132b3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/schema/bind/src/bindings/typescript/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const _toTypescript = (

switch (type) {
case "JSON":
type = "Json";
type = "Types.Json";
break;
default:
if (type.includes("Enum_")) {
Expand Down
4 changes: 2 additions & 2 deletions packages/test-cases/cases/bind/sanity/output/app-ts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export interface CustomType {
optBigint?: Types.BigInt | null;
bignumber: Types.BigNumber;
optBignumber?: Types.BigNumber | null;
json: Json;
optJson?: Json | null;
json: Types.Json;
optJson?: Types.Json | null;
bytes: Types.Bytes;
optBytes?: Types.Bytes | null;
boolean: Types.Boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export interface CustomType {
optBigint?: Types.BigInt | null;
bignumber: Types.BigNumber;
optBignumber?: Types.BigNumber | null;
json: Json;
optJson?: Json | null;
json: Types.Json;
optJson?: Types.Json | null;
bytes: Types.Bytes;
optBytes?: Types.Bytes | null;
boolean: Types.Boolean;
Expand Down

0 comments on commit 2132b3d

Please sign in to comment.