@wessberg/type
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -0,1 +1,10 @@ | ||
<a name="0.0.26"></a> | ||
## 0.0.26 (2017-08-20) | ||
* 0.0.26 ([6df298c](https://github.com/wessberg/Type/commit/6df298c)) | ||
* Bumped version ([666b8c2](https://github.com/wessberg/Type/commit/666b8c2)) | ||
* Renamed 'Parameter' to 'ParameterType' ([c10a3fc](https://github.com/wessberg/Type/commit/c10a3fc)) | ||
<a name="0.0.25"></a> | ||
@@ -2,0 +11,0 @@ ## 0.0.25 (2017-08-20) |
@@ -22,3 +22,3 @@ import { Type } from "../type/type"; | ||
} | ||
export declare type Parameter = INormalParameterType | IObjectBindingParameterType | IArrayBindingParameterType; | ||
export declare const parameterStringified = "\nexport interface IParameterType {\n\tkind: BindingNameKind;\n\tisRestSpread: boolean;\n\toptional: boolean;\n\ttype: Type;\n}\n\nexport interface INormalParameterType extends IParameterType {\n\tkind: BindingNameKind.NORMAL;\n\tname: string;\n}\n\nexport interface IObjectBindingParameterType extends IParameterType {\n\tkind: BindingNameKind.OBJECT_BINDING;\n\tbindings: IObjectBindingName[];\n}\n\nexport interface IArrayBindingParameterType extends IParameterType {\n\tkind: BindingNameKind.ARRAY_BINDING;\n\tbindings: ArrayBindingName[];\n}\n\nexport declare type Parameter = INormalParameterType|IObjectBindingParameterType|IArrayBindingParameterType;\n"; | ||
export declare type ParameterType = INormalParameterType | IObjectBindingParameterType | IArrayBindingParameterType; | ||
export declare const parameterStringified = "\nexport interface IParameterType {\n\tkind: BindingNameKind;\n\tisRestSpread: boolean;\n\toptional: boolean;\n\ttype: Type;\n}\n\nexport interface INormalParameterType extends IParameterType {\n\tkind: BindingNameKind.NORMAL;\n\tname: string;\n}\n\nexport interface IObjectBindingParameterType extends IParameterType {\n\tkind: BindingNameKind.OBJECT_BINDING;\n\tbindings: IObjectBindingName[];\n}\n\nexport interface IArrayBindingParameterType extends IParameterType {\n\tkind: BindingNameKind.ARRAY_BINDING;\n\tbindings: ArrayBindingName[];\n}\n\nexport declare type ParameterType = INormalParameterType|IObjectBindingParameterType|IArrayBindingParameterType;\n"; |
@@ -24,4 +24,4 @@ export const parameterStringified = ` | ||
export declare type Parameter = INormalParameterType|IObjectBindingParameterType|IArrayBindingParameterType; | ||
export declare type ParameterType = INormalParameterType|IObjectBindingParameterType|IArrayBindingParameterType; | ||
`; | ||
//# sourceMappingURL=i-parameter-type.js.map |
import { TypeKind } from "../type-kind/type-kind"; | ||
import { Type } from "./type"; | ||
import { IInterfaceTypeMember } from "../interface-type/i-interface-type-member"; | ||
import { Parameter } from "../parameter-type/i-parameter-type"; | ||
import { ParameterType } from "../parameter-type/i-parameter-type"; | ||
export interface IType { | ||
@@ -36,3 +36,3 @@ kind: TypeKind; | ||
kind: TypeKind.FUNCTION; | ||
parameters: Parameter[]; | ||
parameters: ParameterType[]; | ||
returns: Type; | ||
@@ -39,0 +39,0 @@ } |
@@ -22,3 +22,3 @@ import { Type } from "../type/type"; | ||
} | ||
export declare type Parameter = INormalParameterType | IObjectBindingParameterType | IArrayBindingParameterType; | ||
export declare const parameterStringified = "\nexport interface IParameterType {\n\tkind: BindingNameKind;\n\tisRestSpread: boolean;\n\toptional: boolean;\n\ttype: Type;\n}\n\nexport interface INormalParameterType extends IParameterType {\n\tkind: BindingNameKind.NORMAL;\n\tname: string;\n}\n\nexport interface IObjectBindingParameterType extends IParameterType {\n\tkind: BindingNameKind.OBJECT_BINDING;\n\tbindings: IObjectBindingName[];\n}\n\nexport interface IArrayBindingParameterType extends IParameterType {\n\tkind: BindingNameKind.ARRAY_BINDING;\n\tbindings: ArrayBindingName[];\n}\n\nexport declare type Parameter = INormalParameterType|IObjectBindingParameterType|IArrayBindingParameterType;\n"; | ||
export declare type ParameterType = INormalParameterType | IObjectBindingParameterType | IArrayBindingParameterType; | ||
export declare const parameterStringified = "\nexport interface IParameterType {\n\tkind: BindingNameKind;\n\tisRestSpread: boolean;\n\toptional: boolean;\n\ttype: Type;\n}\n\nexport interface INormalParameterType extends IParameterType {\n\tkind: BindingNameKind.NORMAL;\n\tname: string;\n}\n\nexport interface IObjectBindingParameterType extends IParameterType {\n\tkind: BindingNameKind.OBJECT_BINDING;\n\tbindings: IObjectBindingName[];\n}\n\nexport interface IArrayBindingParameterType extends IParameterType {\n\tkind: BindingNameKind.ARRAY_BINDING;\n\tbindings: ArrayBindingName[];\n}\n\nexport declare type ParameterType = INormalParameterType|IObjectBindingParameterType|IArrayBindingParameterType;\n"; |
@@ -35,5 +35,5 @@ (function (factory) { | ||
export declare type Parameter = INormalParameterType|IObjectBindingParameterType|IArrayBindingParameterType; | ||
export declare type ParameterType = INormalParameterType|IObjectBindingParameterType|IArrayBindingParameterType; | ||
`; | ||
}); | ||
//# sourceMappingURL=i-parameter-type.js.map |
import { TypeKind } from "../type-kind/type-kind"; | ||
import { Type } from "./type"; | ||
import { IInterfaceTypeMember } from "../interface-type/i-interface-type-member"; | ||
import { Parameter } from "../parameter-type/i-parameter-type"; | ||
import { ParameterType } from "../parameter-type/i-parameter-type"; | ||
export interface IType { | ||
@@ -36,3 +36,3 @@ kind: TypeKind; | ||
kind: TypeKind.FUNCTION; | ||
parameters: Parameter[]; | ||
parameters: ParameterType[]; | ||
returns: Type; | ||
@@ -39,0 +39,0 @@ } |
{ | ||
"name": "@wessberg/type", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "Type signatures and enums for model types.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
70244