wasm-ast-types 1.4.1 → 1.5.0
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/client/client.d.ts +1 -1
- package/context/context.d.ts +1 -1
- package/message-builder/message-builder.d.ts +1 -1
- package/message-composer/message-composer.d.ts +1 -1
- package/package.json +3 -3
- package/react-query/react-query.d.ts +1 -1
- package/recoil/recoil.d.ts +1 -1
- package/types/context.d.ts +1 -1
- package/utils/babel.d.ts +2 -2
- package/utils/ref.d.ts +1 -1
- package/utils/types.d.ts +1 -1
package/client/client.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
|
-
import { ExecuteMsg, JSONSchema, QueryMsg } from '@
|
2
|
+
import { ExecuteMsg, JSONSchema, QueryMsg } from '@cosmwasm/ts-codegen-types';
|
3
3
|
import { RenderContext } from '../context';
|
4
4
|
export declare const CONSTANT_EXEC_PARAMS: (t.Identifier | t.AssignmentPattern)[];
|
5
5
|
export declare const createWasmQueryMethod: (context: RenderContext, jsonschema: any) => t.ClassProperty;
|
package/context/context.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
|
-
import { JSONSchema } from "@
|
2
|
+
import { JSONSchema } from "@cosmwasm/ts-codegen-types";
|
3
3
|
import { UtilMapping } from "./imports";
|
4
4
|
import { ContractInfo, ProviderInfo, RenderOptions } from '../types';
|
5
5
|
export interface IContext {
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
|
-
import { ExecuteMsg, QueryMsg } from '@
|
2
|
+
import { ExecuteMsg, QueryMsg } from '@cosmwasm/ts-codegen-types';
|
3
3
|
import { RenderContext } from '../context';
|
4
4
|
export declare const createMessageBuilderClass: (context: RenderContext, className: string, msg: ExecuteMsg | QueryMsg) => t.ExportNamedDeclaration;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
|
-
import { ExecuteMsg } from '@
|
2
|
+
import { ExecuteMsg } from '@cosmwasm/ts-codegen-types';
|
3
3
|
import { RenderContext } from '../context';
|
4
4
|
export declare const createMessageComposerClass: (context: RenderContext, className: string, implementsClassName: string, execMsg: ExecuteMsg) => t.ExportNamedDeclaration;
|
5
5
|
export declare const createMessageComposerInterface: (context: RenderContext, className: string, execMsg: ExecuteMsg) => t.ExportNamedDeclaration;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wasm-ast-types",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.5.0",
|
4
4
|
"description": "CosmWasm TypeScript AST generation",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/cosmwasm/ts-codegen/tree/master/packages/ast#readme",
|
@@ -34,10 +34,10 @@
|
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
36
|
"@babel/types": "7.24.0",
|
37
|
-
"@
|
37
|
+
"@cosmwasm/ts-codegen-types": "^1.2.0",
|
38
38
|
"ast-stringify": "0.1.0",
|
39
39
|
"case": "1.6.3",
|
40
40
|
"deepmerge": "4.2.2"
|
41
41
|
},
|
42
|
-
"gitHead": "
|
42
|
+
"gitHead": "d63f67e0ee4e6494545751a2579e4d17a755bb66"
|
43
43
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
|
-
import { JSONSchema, ExecuteMsg, QueryMsg } from '@
|
2
|
+
import { JSONSchema, ExecuteMsg, QueryMsg } from '@cosmwasm/ts-codegen-types';
|
3
3
|
import { RenderContext } from '../context';
|
4
4
|
interface ReactQueryHookQuery {
|
5
5
|
context: RenderContext;
|
package/recoil/recoil.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
|
-
import { QueryMsg } from '@
|
2
|
+
import { QueryMsg } from '@cosmwasm/ts-codegen-types';
|
3
3
|
import { RenderContext } from '../context';
|
4
4
|
export declare const createRecoilSelector: (context: RenderContext, keyPrefix: string, QueryClient: string, methodName: string, responseType: string) => t.ExportNamedDeclaration;
|
5
5
|
export declare const createRecoilSelectors: (context: RenderContext, keyPrefix: string, QueryClient: string, queryMsg: QueryMsg) => t.ExportNamedDeclaration[];
|
package/types/context.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IDLObject, JSONSchema } from "@
|
1
|
+
import { IDLObject, JSONSchema } from "@cosmwasm/ts-codegen-types";
|
2
2
|
import { MessageBuilderOptions, MessageComposerOptions, ReactQueryOptions, RecoilOptions, TSClientOptions, TSTypesOptions, UseContractsOptions } from "./plugins";
|
3
3
|
export interface ContractInfo {
|
4
4
|
schemas: JSONSchema[];
|
package/utils/babel.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
|
-
import { Field } from '@
|
2
|
+
import { Field } from '@cosmwasm/ts-codegen-types';
|
3
3
|
import { TSTypeAnnotation, TSExpressionWithTypeArguments } from '@babel/types';
|
4
|
-
import { JSONSchema } from '@
|
4
|
+
import { JSONSchema } from '@cosmwasm/ts-codegen-types';
|
5
5
|
export declare const propertySignature: (name: string, typeAnnotation: TSTypeAnnotation, optional?: boolean) => t.TSPropertySignature;
|
6
6
|
export declare const identifier: (name: string, typeAnnotation: t.TSTypeAnnotation, optional?: boolean) => t.Identifier;
|
7
7
|
export declare const tsTypeOperator: (typeAnnotation: t.TSType, operator: string) => t.TSTypeOperator;
|
package/utils/ref.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import { JSONSchema } from "@
|
1
|
+
import { JSONSchema } from "@cosmwasm/ts-codegen-types";
|
2
2
|
export declare const refLookup: ($ref: string, schema: JSONSchema) => JSONSchema;
|
package/utils/types.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
2
|
import { RenderContext } from '../context';
|
3
|
-
import { JSONSchema } from '@
|
3
|
+
import { JSONSchema } from '@cosmwasm/ts-codegen-types';
|
4
4
|
export declare function getResponseType(context: RenderContext, underscoreName: string): string;
|
5
5
|
export declare const getTypeFromRef: ($ref: string) => t.TSTypeReference;
|
6
6
|
export declare const getTypeOrRef: (obj: JSONSchema) => t.TSType;
|