wasm-ast-types 0.23.0 → 0.23.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/types/client/client.d.ts +1 -3
- package/types/context/context.d.ts +0 -1
- package/types/msg-builder/msg-builder.d.ts +3 -3
- package/types/utils/babel.d.ts +1 -6
- package/types/utils/constants.d.ts +5 -0
- package/types/utils/index.d.ts +2 -0
- package/types/utils/types.d.ts +2 -7
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wasm-ast-types",
|
3
|
-
"version": "0.23.
|
3
|
+
"version": "0.23.1",
|
4
4
|
"description": "CosmWasm TypeScript AST generation",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/pyramation/cosmwasm-typescript-gen/tree/master/packages/wasm-ast-types#readme",
|
@@ -88,5 +88,5 @@
|
|
88
88
|
"case": "1.6.3",
|
89
89
|
"deepmerge": "4.2.2"
|
90
90
|
},
|
91
|
-
"gitHead": "
|
91
|
+
"gitHead": "14dc44173f67be9b0b64dd642697c62a1a3d0211"
|
92
92
|
}
|
package/types/client/client.d.ts
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
|
-
import {
|
2
|
+
import { ExecuteMsg, JSONSchema, QueryMsg } from '../types';
|
3
3
|
import { RenderContext } from '../context';
|
4
|
-
import { JSONSchema } from '../types';
|
5
4
|
export declare const CONSTANT_EXEC_PARAMS: (t.AssignmentPattern | t.Identifier)[];
|
6
|
-
export declare const FIXED_EXECUTE_PARAMS: t.Identifier[];
|
7
5
|
export declare const createWasmQueryMethod: (context: RenderContext, jsonschema: any) => t.ClassProperty;
|
8
6
|
export declare const createQueryClass: (context: RenderContext, className: string, implementsClassName: string, queryMsg: QueryMsg) => t.ExportNamedDeclaration;
|
9
7
|
export declare const getWasmMethodArgs: (context: RenderContext, jsonschema: JSONSchema) => t.ObjectProperty[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import * as t from
|
2
|
-
import { ExecuteMsg, QueryMsg } from
|
3
|
-
import { RenderContext } from
|
1
|
+
import * as t from '@babel/types';
|
2
|
+
import { ExecuteMsg, QueryMsg } from '../types';
|
3
|
+
import { RenderContext } from '../context';
|
4
4
|
export declare const createMsgBuilderClass: (context: RenderContext, className: string, msg: ExecuteMsg | QueryMsg) => t.ExportNamedDeclaration;
|
package/types/utils/babel.d.ts
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
import * as t from '@babel/types';
|
2
2
|
import { Field } from '../types';
|
3
3
|
import { TSTypeAnnotation, TSExpressionWithTypeArguments } from '@babel/types';
|
4
|
-
export declare const propertySignature: (name: string, typeAnnotation:
|
5
|
-
type: string;
|
6
|
-
key: t.Identifier;
|
7
|
-
typeAnnotation: t.TSTypeAnnotation;
|
8
|
-
optional: boolean;
|
9
|
-
};
|
4
|
+
export declare const propertySignature: (name: string, typeAnnotation: TSTypeAnnotation, optional?: boolean) => t.TSPropertySignature;
|
10
5
|
export declare const identifier: (name: string, typeAnnotation: t.TSTypeAnnotation, optional?: boolean) => t.Identifier;
|
11
6
|
export declare const tsTypeOperator: (typeAnnotation: t.TSType, operator: string) => t.TSTypeOperator;
|
12
7
|
export declare const getMessageProperties: (msg: any) => any[];
|
package/types/utils/index.d.ts
CHANGED
package/types/utils/types.d.ts
CHANGED
@@ -17,11 +17,6 @@ export declare const getPropertyType: (context: RenderContext, schema: JSONSchem
|
|
17
17
|
type: any;
|
18
18
|
optional: boolean;
|
19
19
|
};
|
20
|
-
export declare function getPropertySignatureFromProp(context: RenderContext, jsonschema: JSONSchema, prop: string, camelize: boolean):
|
21
|
-
type: string;
|
22
|
-
key: t.Identifier;
|
23
|
-
typeAnnotation: t.TSTypeAnnotation;
|
24
|
-
optional: boolean;
|
25
|
-
};
|
20
|
+
export declare function getPropertySignatureFromProp(context: RenderContext, jsonschema: JSONSchema, prop: string, camelize: boolean): t.TSPropertySignature;
|
26
21
|
export declare const getParamsTypeAnnotation: (context: RenderContext, jsonschema: any, camelize?: boolean) => t.TSTypeAnnotation;
|
27
|
-
export declare const createTypedObjectParams: (context: RenderContext, jsonschema: JSONSchema, camelize?: boolean) => t.
|
22
|
+
export declare const createTypedObjectParams: (context: RenderContext, jsonschema: JSONSchema, camelize?: boolean) => (t.Identifier | t.Pattern | t.RestElement);
|