wasm-ast-types 0.23.0 → 0.23.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wasm-ast-types",
3
- "version": "0.23.0",
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": "9979ae4b7209f920fe1b822ede2ba80ee0f2eade"
91
+ "gitHead": "14dc44173f67be9b0b64dd642697c62a1a3d0211"
92
92
  }
@@ -1,9 +1,7 @@
1
1
  import * as t from '@babel/types';
2
- import { QueryMsg, ExecuteMsg } from '../types';
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[];
@@ -25,7 +25,6 @@ export interface RecoilOptions {
25
25
  }
26
26
  export interface TSTypesOptions {
27
27
  enabled?: boolean;
28
- // deprecated
29
28
  aliasExecuteMsg?: boolean;
30
29
  aliasEntryPoints?: boolean;
31
30
  }
@@ -1,4 +1,4 @@
1
- import * as t from "@babel/types";
2
- import { ExecuteMsg, QueryMsg } from "../types";
3
- import { RenderContext } from "../context";
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;
@@ -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: t.TSTypeAnnotation, optional?: boolean) => {
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[];
@@ -0,0 +1,5 @@
1
+ import * as t from '@babel/types';
2
+ export declare const OPTIONAL_FUNDS_PARAM: t.Identifier;
3
+ export declare const OPTIONAL_FEE_PARAM: t.Identifier;
4
+ export declare const OPTIONAL_MEMO_PARAM: t.Identifier;
5
+ export declare const FIXED_EXECUTE_PARAMS: t.Identifier[];
@@ -1,3 +1,5 @@
1
1
  export * from './babel';
2
2
  export * from './types';
3
3
  export * from './ref';
4
+ export { OPTIONAL_FUNDS_PARAM } from './constants';
5
+ export { FIXED_EXECUTE_PARAMS } from './constants';
@@ -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.ObjectPattern;
22
+ export declare const createTypedObjectParams: (context: RenderContext, jsonschema: JSONSchema, camelize?: boolean) => (t.Identifier | t.Pattern | t.RestElement);