@typescript-runtime-schema/factory
v1.0.6
Published
A wrapper for the typescript factory that provide sensible currying to the API. Built specifically for the @typescript-runtime-schema, so your mileage may vary in terms of API coverage
Downloads
3
Readme
@typescript-runtime-schema/factory
A wrapper for the typescript factory that provide sensible currying to the API. Built specifically for the @typescript-runtime-schema, so your mileage may vary in terms of API coverage
Installation
Using npm:
npm install @typescript-runtime-schema/factory
Using yarn:
yarn add @typescript-runtime-schema/factory
API
Index
Variables
- createArrayBindingPattern
- createArrayTypeNode
- createAwaitExpression
- createBigIntLiteral
- createBitwiseNot
- createBreakStatement
- createCaseBlock
- createCommaListExpression
- createComputedPropertyName
- createContinueStatement
- createDebuggerStatement
- createDecorator
- createDefaultClause
- createDeleteExpression
- createEmptyStatement
- createExportDefault
- createExpressionStatement
- createExternalModuleExport
- createExternalModuleReference
- createFalse
- createIdentifier
- createInferTypeNode
- createIntersectionTypeNode
- createJSDocAllType
- createJSDocNamepathType
- createJSDocNonNullableType
- createJSDocNullableType
- createJSDocOptionalType
- createJSDocTypeExpression
- createJSDocUnknownType
- createJSDocVariadicType
- createJsxAttributes
- createJsxClosingElement
- createJsxJsxClosingFragment
- createJsxOpeningFragment
- createJsxSpreadAttribute
- createKeywordTypeNode
- createLogicalNot
- createLoopVariable
- createModifier
- createModifiersFromModifierFlags
- createModuleBlock
- createNamedExports
- createNamedImports
- createNamespaceExport
- createNamespaceExportDeclaration
- createNamespaceImport
- createNonNullChain
- createNonNullExpression
- createNotEmittedStatement
- createNull
- createObjectBindingPattern
- createOmittedExpression
- createOptionalTypeNode
- createParenthesizedExpression
- createParenthesizedType
- createPostfixDecrement
- createPostfixIncrement
- createPrefixDecrement
- createPrefixIncrement
- createPrefixMinus
- createPrefixPlus
- createPrivateIdentifier
- createRegularExpressionLiteral
- createRestTypeNode
- createReturnStatement
- createSemicolonClassElement
- createSpreadAssignment
- createSpreadElement
- createSuper
- createThis
- createThisTypeNode
- createThrowStatement
- createToken
- createTrue
- createTypeLiteralNode
- createTypeOfExpression
- createTypeQueryNode
- createUnionTypeNode
- createVoidExpression
- createVoidZero
- getGeneratedNameForNode
Functions
- createAdd
- createArrayLiteralExpression
- createArrowFunction
- createAsExpression
- createAssignment
- createBinaryExpression
- createBindingElement
- createBitwiseAnd
- createBitwiseOr
- createBitwiseXor
- createBlock
- createBundle
- createCallChain
- createCallExpression
- createCallSignature
- createCaseClause
- createCatchClause
- createComma
- createConstructSignature
- createConstructorTypeNode
- createDivide
- createDoStatement
- createElementAccessChain
- createElementAccessExpression
- createEnumMember
- createEquality
- createExponent
- createExportSpecifier
- createExpressionWithTypeArguments
- createForInStatement
- createFunctionTypeNode
- createGreaterThan
- createGreaterThanEquals
- createIfStatement
- createImmediatelyInvokedArrowFunction
- createImmediatelyInvokedFunctionExpression
- createImportClause
- createImportSpecifier
- createIndexedAccessTypeNode
- createInequality
- createJSDocAuthorTag
- createJSDocClassTag
- createJSDocComment
- createJSDocDeprecatedTag
- createJSDocEnumTag
- createJSDocFunctionType
- createJSDocPrivateTag
- createJSDocProtectedTag
- createJSDocPublicTag
- createJSDocReadonlyTag
- createJSDocReturnTag
- createJSDocSignature
- createJSDocThisTag
- createJSDocTypeLiteral
- createJSDocTypeTag
- createJSDocUnknownTag
- createJsxAttribute
- createJsxElement
- createJsxExpression
- createJsxFragment
- createJsxOpeningElement
- createJsxSelfClosingElement
- createJsxText
- createLabeledStatement
- createLeftShift
- createLessThan
- createLessThanEquals
- createLogicalAnd
- createLogicalOr
- createModulo
- createMultiply
- createNewExpression
- createNodeArray
- createNumericLiteral
- createObjectLiteralExpression
- createPartiallyEmittedExpression
- createPostfixUnaryExpression
- createPrefixUnaryExpression
- createPropertyAccessChain
- createPropertyAccessExpression
- createPropertyAssignment
- createQualifiedName
- createRightShift
- createShorthandPropertyAssignment
- createSourceFile
- createStrictEquality
- createStrictInequality
- createStringLiteral
- createStringLiteralFromNode
- createSubtract
- createSwitchStatement
- createTaggedTemplateExpression
- createTemplateExpression
- createTemplateHead
- createTemplateSpan
- createTryStatement
- createTypeAssertion
- createTypeOperatorNode
- createTypeParameterDeclaration
- createTypePredicateNode
- createTypeReferenceNode
- createUniqueName
- createUnsignedRightShift
- createVariableDeclarationList
- createVariableStatement
- createWhileStatement
- createWithStatement
- restoreOuterExpressions
- updateArrayBindingPattern
- updateArrayLiteralExpression
- updateArrayTypeNode
- updateAsExpression
- updateAwaitExpression
- updateBlock
- updateBreakStatement
- updateCallExpression
- updateCaseBlock
- updateCaseClause
- updateCatchClause
- updateCommaListExpression
- updateComputedPropertyName
- updateContinueStatement
- updateDecorator
- updateDefaultClause
- updateDeleteExpression
- updateDoStatement
- updateElementAccessExpression
- updateEnumMember
- updateExportSpecifier
- updateExpressionStatement
- updateExpressionWithTypeArguments
- updateExternalModuleReference
- updateHeritageClause
- updateImportSpecifier
- updateIndexedAccessTypeNode
- updateInferTypeNode
- updateIntersectionTypeNode
- updateJSDocAuthorTag
- updateJSDocClassTag
- updateJSDocComment
- updateJSDocDeprecatedTag
- updateJSDocFunctionType
- updateJSDocNamepathType
- updateJSDocNonNullableType
- updateJSDocNullableType
- updateJSDocOptionalType
- updateJSDocPrivateTag
- updateJSDocProtectedTag
- updateJSDocPublicTag
- updateJSDocReadonlyTag
- updateJSDocTypeExpression
- updateJSDocTypeLiteral
- updateJSDocUnknownTag
- updateJSDocVariadicType
- updateJsxAttribute
- updateJsxAttributes
- updateJsxClosingElement
- updateJsxExpression
- updateJsxSpreadAttribute
- updateJsxText
- updateLabeledStatement
- updateLiteralTypeNode
- updateMetaProperty
- updateModuleBlock
- updateNamedExports
- updateNamedImports
- updateNamespaceExport
- updateNamespaceExportDeclaration
- updateNamespaceImport
- updateNonNullChain
- updateNonNullExpression
- updateObjectBindingPattern
- updateObjectLiteralExpression
- updateOptionalTypeNode
- updateParenthesizedExpression
- updateParenthesizedType
- updatePartiallyEmittedExpression
- updatePostfixUnaryExpression
- updatePrefixUnaryExpression
- updatePropertyAccessExpression
- updatePropertyAssignment
- updateQualifiedName
- updateRestTypeNode
- updateReturnStatement
- updateShorthandPropertyAssignment
- updateSpreadAssignment
- updateSpreadElement
- updateSwitchStatement
- updateTemplateExpression
- updateTemplateSpan
- updateThrowStatement
- updateTypeAssertion
- updateTypeLiteralNode
- updateTypeOfExpression
- updateTypeOperatorNode
- updateTypeQueryNode
- updateTypeReferenceNode
- updateUnionTypeNode
- updateVariableDeclarationList
- updateVariableStatement
- updateVoidExpression
- updateWhileStatement
- updateWithStatement
- updateYieldExpression
Variables
createArrayBindingPattern
• Const
createArrayBindingPattern: createArrayBindingPattern = ts.factory.createArrayBindingPattern
Defined in src/index.ts:71
createArrayTypeNode
• Const
createArrayTypeNode: createArrayTypeNode = ts.factory.createArrayTypeNode
Defined in src/index.ts:72
createAwaitExpression
• Const
createAwaitExpression: createAwaitExpression = ts.factory.createAwaitExpression
Defined in src/index.ts:73
createBigIntLiteral
• Const
createBigIntLiteral: createBigIntLiteral = ts.factory.createBigIntLiteral
Defined in src/index.ts:74
createBitwiseNot
• Const
createBitwiseNot: createBitwiseNot = ts.factory.createBitwiseNot
Defined in src/index.ts:75
createBreakStatement
• Const
createBreakStatement: createBreakStatement = ts.factory.createBreakStatement
Defined in src/index.ts:76
createCaseBlock
• Const
createCaseBlock: createCaseBlock = ts.factory.createCaseBlock
Defined in src/index.ts:77
createCommaListExpression
• Const
createCommaListExpression: createCommaListExpression = ts.factory.createCommaListExpression
Defined in src/index.ts:78
createComputedPropertyName
• Const
createComputedPropertyName: createComputedPropertyName = ts.factory.createComputedPropertyName
Defined in src/index.ts:79
createContinueStatement
• Const
createContinueStatement: createContinueStatement = ts.factory.createContinueStatement
Defined in src/index.ts:80
createDebuggerStatement
• Const
createDebuggerStatement: createDebuggerStatement = ts.factory.createDebuggerStatement
Defined in src/index.ts:81
createDecorator
• Const
createDecorator: createDecorator = ts.factory.createDecorator
Defined in src/index.ts:82
createDefaultClause
• Const
createDefaultClause: createDefaultClause = ts.factory.createDefaultClause
Defined in src/index.ts:83
createDeleteExpression
• Const
createDeleteExpression: createDeleteExpression = ts.factory.createDeleteExpression
Defined in src/index.ts:84
createEmptyStatement
• Const
createEmptyStatement: createEmptyStatement = ts.factory.createEmptyStatement
Defined in src/index.ts:85
createExportDefault
• Const
createExportDefault: createExportDefault = ts.factory.createExportDefault
Defined in src/index.ts:86
createExpressionStatement
• Const
createExpressionStatement: createExpressionStatement = ts.factory.createExpressionStatement
Defined in src/index.ts:87
createExternalModuleExport
• Const
createExternalModuleExport: createExternalModuleExport = ts.factory.createExternalModuleExport
Defined in src/index.ts:88
createExternalModuleReference
• Const
createExternalModuleReference: createExternalModuleReference = ts.factory.createExternalModuleReference
Defined in src/index.ts:89
createFalse
• Const
createFalse: createFalse = ts.factory.createFalse
Defined in src/index.ts:90
createIdentifier
• Const
createIdentifier: createIdentifier = ts.factory.createIdentifier
Defined in src/index.ts:91
createInferTypeNode
• Const
createInferTypeNode: createInferTypeNode = ts.factory.createInferTypeNode
Defined in src/index.ts:94
createIntersectionTypeNode
• Const
createIntersectionTypeNode: createIntersectionTypeNode = ts.factory.createIntersectionTypeNode
Defined in src/index.ts:95
createJSDocAllType
• Const
createJSDocAllType: createJSDocAllType = ts.factory.createJSDocAllType
Defined in src/index.ts:96
createJSDocNamepathType
• Const
createJSDocNamepathType: createJSDocNamepathType = ts.factory.createJSDocNamepathType
Defined in src/index.ts:97
createJSDocNonNullableType
• Const
createJSDocNonNullableType: createJSDocNonNullableType = ts.factory.createJSDocNonNullableType
Defined in src/index.ts:98
createJSDocNullableType
• Const
createJSDocNullableType: createJSDocNullableType = ts.factory.createJSDocNullableType
Defined in src/index.ts:99
createJSDocOptionalType
• Const
createJSDocOptionalType: createJSDocOptionalType = ts.factory.createJSDocOptionalType
Defined in src/index.ts:100
createJSDocTypeExpression
• Const
createJSDocTypeExpression: createJSDocTypeExpression = ts.factory.createJSDocTypeExpression
Defined in src/index.ts:101
createJSDocUnknownType
• Const
createJSDocUnknownType: createJSDocUnknownType = ts.factory.createJSDocUnknownType
Defined in src/index.ts:102
createJSDocVariadicType
• Const
createJSDocVariadicType: createJSDocVariadicType = ts.factory.createJSDocVariadicType
Defined in src/index.ts:103
createJsxAttributes
• Const
createJsxAttributes: createJsxAttributes = ts.factory.createJsxAttributes
Defined in src/index.ts:104
createJsxClosingElement
• Const
createJsxClosingElement: createJsxClosingElement = ts.factory.createJsxClosingElement
Defined in src/index.ts:105
createJsxJsxClosingFragment
• Const
createJsxJsxClosingFragment: createJsxJsxClosingFragment = ts.factory.createJsxJsxClosingFragment
Defined in src/index.ts:106
createJsxOpeningFragment
• Const
createJsxOpeningFragment: createJsxOpeningFragment = ts.factory.createJsxOpeningFragment
Defined in src/index.ts:107
createJsxSpreadAttribute
• Const
createJsxSpreadAttribute: createJsxSpreadAttribute = ts.factory.createJsxSpreadAttribute
Defined in src/index.ts:108
createKeywordTypeNode
• Const
createKeywordTypeNode: createKeywordTypeNode = ts.factory.createKeywordTypeNode
Defined in src/index.ts:109
createLogicalNot
• Const
createLogicalNot: createLogicalNot = ts.factory.createLogicalNot
Defined in src/index.ts:110
createLoopVariable
• Const
createLoopVariable: createLoopVariable = ts.factory.createLoopVariable
Defined in src/index.ts:111
createModifier
• Const
createModifier: createModifier = ts.factory.createModifier
Defined in src/index.ts:112
createModifiersFromModifierFlags
• Const
createModifiersFromModifierFlags: createModifiersFromModifierFlags = ts.factory.createModifiersFromModifierFlags
Defined in src/index.ts:113
createModuleBlock
• Const
createModuleBlock: createModuleBlock = ts.factory.createModuleBlock
Defined in src/index.ts:114
createNamedExports
• Const
createNamedExports: createNamedExports = ts.factory.createNamedExports
Defined in src/index.ts:115
createNamedImports
• Const
createNamedImports: createNamedImports = ts.factory.createNamedImports
Defined in src/index.ts:116
createNamespaceExport
• Const
createNamespaceExport: createNamespaceExport = ts.factory.createNamespaceExport
Defined in src/index.ts:117
createNamespaceExportDeclaration
• Const
createNamespaceExportDeclaration: createNamespaceExportDeclaration = ts.factory.createNamespaceExportDeclaration
Defined in src/index.ts:118
createNamespaceImport
• Const
createNamespaceImport: createNamespaceImport = ts.factory.createNamespaceImport
Defined in src/index.ts:119
createNonNullChain
• Const
createNonNullChain: createNonNullChain = ts.factory.createNonNullChain
Defined in src/index.ts:120
createNonNullExpression
• Const
createNonNullExpression: createNonNullExpression = ts.factory.createNonNullExpression
Defined in src/index.ts:121
createNotEmittedStatement
• Const
createNotEmittedStatement: createNotEmittedStatement = ts.factory.createNotEmittedStatement
Defined in src/index.ts:122
createNull
• Const
createNull: createNull = ts.factory.createNull
Defined in src/index.ts:123
createObjectBindingPattern
• Const
createObjectBindingPattern: createObjectBindingPattern = ts.factory.createObjectBindingPattern
Defined in src/index.ts:124
createOmittedExpression
• Const
createOmittedExpression: createOmittedExpression = ts.factory.createOmittedExpression
Defined in src/index.ts:125
createOptionalTypeNode
• Const
createOptionalTypeNode: createOptionalTypeNode = ts.factory.createOptionalTypeNode
Defined in src/index.ts:126
createParenthesizedExpression
• Const
createParenthesizedExpression: createParenthesizedExpression = ts.factory.createParenthesizedExpression
Defined in src/index.ts:127
createParenthesizedType
• Const
createParenthesizedType: createParenthesizedType = ts.factory.createParenthesizedType
Defined in src/index.ts:128
createPostfixDecrement
• Const
createPostfixDecrement: createPostfixDecrement = ts.factory.createPostfixDecrement
Defined in src/index.ts:129
createPostfixIncrement
• Const
createPostfixIncrement: createPostfixIncrement = ts.factory.createPostfixIncrement
Defined in src/index.ts:130
createPrefixDecrement
• Const
createPrefixDecrement: createPrefixDecrement = ts.factory.createPrefixDecrement
Defined in src/index.ts:131
createPrefixIncrement
• Const
createPrefixIncrement: createPrefixIncrement = ts.factory.createPrefixIncrement
Defined in src/index.ts:132
createPrefixMinus
• Const
createPrefixMinus: createPrefixMinus = ts.factory.createPrefixMinus
Defined in src/index.ts:133
createPrefixPlus
• Const
createPrefixPlus: createPrefixPlus = ts.factory.createPrefixPlus
Defined in src/index.ts:134
createPrivateIdentifier
• Const
createPrivateIdentifier: createPrivateIdentifier = ts.factory.createPrivateIdentifier
Defined in src/index.ts:135
createRegularExpressionLiteral
• Const
createRegularExpressionLiteral: createRegularExpressionLiteral = ts.factory.createRegularExpressionLiteral
Defined in src/index.ts:136
createRestTypeNode
• Const
createRestTypeNode: createRestTypeNode = ts.factory.createRestTypeNode
Defined in src/index.ts:137
createReturnStatement
• Const
createReturnStatement: createReturnStatement = ts.factory.createReturnStatement
Defined in src/index.ts:138
createSemicolonClassElement
• Const
createSemicolonClassElement: createSemicolonClassElement = ts.factory.createSemicolonClassElement
Defined in src/index.ts:139
createSpreadAssignment
• Const
createSpreadAssignment: createSpreadAssignment = ts.factory.createSpreadAssignment
Defined in src/index.ts:140
createSpreadElement
• Const
createSpreadElement: createSpreadElement = ts.factory.createSpreadElement
Defined in src/index.ts:141
createSuper
• Const
createSuper: createSuper = ts.factory.createSuper
Defined in src/index.ts:142
createThis
• Const
createThis: createThis = ts.factory.createThis
Defined in src/index.ts:143
createThisTypeNode
• Const
createThisTypeNode: createThisTypeNode = ts.factory.createThisTypeNode
Defined in src/index.ts:144
createThrowStatement
• Const
createThrowStatement: createThrowStatement = ts.factory.createThrowStatement
Defined in src/index.ts:145
createToken
• Const
createToken: createToken = ts.factory.createToken
Defined in src/index.ts:146
createTrue
• Const
createTrue: createTrue = ts.factory.createTrue
Defined in src/index.ts:147
createTypeLiteralNode
• Const
createTypeLiteralNode: createTypeLiteralNode = ts.factory.createTypeLiteralNode
Defined in src/index.ts:148
createTypeOfExpression
• Const
createTypeOfExpression: createTypeOfExpression = ts.factory.createTypeOfExpression
Defined in src/index.ts:149
createTypeQueryNode
• Const
createTypeQueryNode: createTypeQueryNode = ts.factory.createTypeQueryNode
Defined in src/index.ts:150
createUnionTypeNode
• Const
createUnionTypeNode: createUnionTypeNode = ts.factory.createUnionTypeNode
Defined in src/index.ts:151
createVoidExpression
• Const
createVoidExpression: createVoidExpression = ts.factory.createVoidExpression
Defined in src/index.ts:152
createVoidZero
• Const
createVoidZero: createVoidZero = ts.factory.createVoidZero
Defined in src/index.ts:153
getGeneratedNameForNode
• Const
getGeneratedNameForNode: getGeneratedNameForNode = ts.factory.getGeneratedNameForNode
Defined in src/index.ts:154
Functions
createAdd
▸ Const
createAdd(right
: Expression): (Anonymous function)
Defined in src/index.ts:155
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createArrayLiteralExpression
▸ Const
createArrayLiteralExpression(multiLine?
: boolean): (Anonymous function)
Defined in src/index.ts:156
Parameters:
Name | Type |
------ | ------ |
multiLine?
| boolean |
Returns: (Anonymous function)
createArrowFunction
▸ Const
createArrowFunction(body
: ts.ConciseBody): (Anonymous function)
Defined in src/index.ts:20
Parameters:
Name | Type |
------ | ------ |
body
| ts.ConciseBody |
Returns: (Anonymous function)
createAsExpression
▸ Const
createAsExpression(type
: TypeNode): (Anonymous function)
Defined in src/index.ts:157
Parameters:
Name | Type |
------ | ------ |
type
| TypeNode |
Returns: (Anonymous function)
createAssignment
▸ createAssignment(right
: Expression): function
Defined in src/index.ts:158
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: function
▸ createAssignment(right
: Expression): function
Defined in src/index.ts:159
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: function
createBinaryExpression
▸ Const
createBinaryExpression(operator
: ts.BinaryOperator | ts.BinaryOperatorToken, right
: Expression): (Anonymous function)
Defined in src/index.ts:303
Parameters:
Name | Type |
------ | ------ |
operator
| ts.BinaryOperator | ts.BinaryOperatorToken |
right
| Expression |
Returns: (Anonymous function)
createBindingElement
▸ Const
createBindingElement(dotDotDotToken
: ts.DotDotDotToken | undefined, propertyName
: string | ts.PropertyName | undefined, name
: string | ts.BindingName): (Anonymous function)
Defined in src/index.ts:38
Parameters:
Name | Type |
------ | ------ |
dotDotDotToken
| ts.DotDotDotToken | undefined |
propertyName
| string | ts.PropertyName | undefined |
name
| string | ts.BindingName |
Returns: (Anonymous function)
createBitwiseAnd
▸ Const
createBitwiseAnd(right
: Expression): (Anonymous function)
Defined in src/index.ts:168
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createBitwiseOr
▸ Const
createBitwiseOr(right
: Expression): (Anonymous function)
Defined in src/index.ts:169
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createBitwiseXor
▸ Const
createBitwiseXor(right
: Expression): (Anonymous function)
Defined in src/index.ts:170
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createBlock
▸ Const
createBlock(multiLine?
: boolean): (Anonymous function)
Defined in src/index.ts:171
Parameters:
Name | Type |
------ | ------ |
multiLine?
| boolean |
Returns: (Anonymous function)
createBundle
▸ Const
createBundle(prepends?
: readonly (UnparsedSource | InputFiles)[]): (Anonymous function)
Defined in src/index.ts:52
Parameters:
Name | Type |
------ | ------ |
prepends?
| readonly (UnparsedSource | InputFiles)[] |
Returns: (Anonymous function)
createCallChain
▸ Const
createCallChain(questionDotToken
: ts.QuestionDotToken | undefined, typeArguments
: readonly TypeNode[] | undefined, argumentsArray
: readonly Expression[] | undefined): (Anonymous function)
Defined in src/index.ts:59
Parameters:
Name | Type |
------ | ------ |
questionDotToken
| ts.QuestionDotToken | undefined |
typeArguments
| readonly TypeNode[] | undefined |
argumentsArray
| readonly Expression[] | undefined |
Returns: (Anonymous function)
createCallExpression
▸ Const
createCallExpression(typeArguments
: readonly TypeNode[] | undefined, argumentsArray
: readonly Expression[] | undefined): (Anonymous function)
Defined in src/index.ts:304
Parameters:
Name | Type |
------ | ------ |
typeArguments
| readonly TypeNode[] | undefined |
argumentsArray
| readonly Expression[] | undefined |
Returns: (Anonymous function)
createCallSignature
▸ Const
createCallSignature(parameters
: readonly ParameterDeclaration[], type
: TypeNode | undefined): (Anonymous function)
Defined in src/index.ts:305
Parameters:
Name | Type |
------ | ------ |
parameters
| readonly ParameterDeclaration[] |
type
| TypeNode | undefined |
Returns: (Anonymous function)
createCaseClause
▸ Const
createCaseClause(statements
: readonly Statement[]): (Anonymous function)
Defined in src/index.ts:172
Parameters:
Name | Type |
------ | ------ |
statements
| readonly Statement[] |
Returns: (Anonymous function)
createCatchClause
▸ Const
createCatchClause(block
: Block): (Anonymous function)
Defined in src/index.ts:173
Parameters:
Name | Type |
------ | ------ |
block
| Block |
Returns: (Anonymous function)
createComma
▸ Const
createComma(right
: Expression): (Anonymous function)
Defined in src/index.ts:174
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createConstructSignature
▸ Const
createConstructSignature(parameters
: readonly ParameterDeclaration[], type
: TypeNode | undefined): (Anonymous function)
Defined in src/index.ts:307
Parameters:
Name | Type |
------ | ------ |
parameters
| readonly ParameterDeclaration[] |
type
| TypeNode | undefined |
Returns: (Anonymous function)
createConstructorTypeNode
▸ Const
createConstructorTypeNode(parameters
: readonly ParameterDeclaration[], type
: TypeNode): (Anonymous function)
Defined in src/index.ts:306
Parameters:
Name | Type |
------ | ------ |
parameters
| readonly ParameterDeclaration[] |
type
| TypeNode |
Returns: (Anonymous function)
createDivide
▸ Const
createDivide(right
: Expression): (Anonymous function)
Defined in src/index.ts:175
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createDoStatement
▸ Const
createDoStatement(expression
: Expression): (Anonymous function)
Defined in src/index.ts:176
Parameters:
Name | Type |
------ | ------ |
expression
| Expression |
Returns: (Anonymous function)
createElementAccessChain
▸ Const
createElementAccessChain(questionDotToken
: ts.QuestionDotToken | undefined, index
: number | Expression): (Anonymous function)
Defined in src/index.ts:308
Parameters:
Name | Type |
------ | ------ |
questionDotToken
| ts.QuestionDotToken | undefined |
index
| number | Expression |
Returns: (Anonymous function)
createElementAccessExpression
▸ Const
createElementAccessExpression(index
: number | Expression): (Anonymous function)
Defined in src/index.ts:177
Parameters:
Name | Type |
------ | ------ |
index
| number | Expression |
Returns: (Anonymous function)
createEnumMember
▸ Const
createEnumMember(initializer
: Expression): (Anonymous function)
Defined in src/index.ts:178
Parameters:
Name | Type |
------ | ------ |
initializer
| Expression |
Returns: (Anonymous function)
createEquality
▸ Const
createEquality(right
: Expression): (Anonymous function)
Defined in src/index.ts:179
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createExponent
▸ Const
createExponent(right
: Expression): (Anonymous function)
Defined in src/index.ts:180
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createExportSpecifier
▸ Const
createExportSpecifier(name
: string | Identifier): (Anonymous function)
Defined in src/index.ts:181
Parameters:
Name | Type |
------ | ------ |
name
| string | Identifier |
Returns: (Anonymous function)
createExpressionWithTypeArguments
▸ Const
createExpressionWithTypeArguments(typeArguments
: readonly TypeNode[] | undefined): (Anonymous function)
Defined in src/index.ts:182
Parameters:
Name | Type |
------ | ------ |
typeArguments
| readonly TypeNode[] | undefined |
Returns: (Anonymous function)
createForInStatement
▸ Const
createForInStatement(expression
: Expression, statement
: Statement): (Anonymous function)
Defined in src/index.ts:309
Parameters:
Name | Type |
------ | ------ |
expression
| Expression |
statement
| Statement |
Returns: (Anonymous function)
createFunctionTypeNode
▸ Const
createFunctionTypeNode(parameters
: readonly ParameterDeclaration[], type
: TypeNode): (Anonymous function)
Defined in src/index.ts:310
Parameters:
Name | Type |
------ | ------ |
parameters
| readonly ParameterDeclaration[] |
type
| TypeNode |
Returns: (Anonymous function)
createGreaterThan
▸ Const
createGreaterThan(right
: Expression): (Anonymous function)
Defined in src/index.ts:183
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createGreaterThanEquals
▸ Const
createGreaterThanEquals(right
: Expression): (Anonymous function)
Defined in src/index.ts:184
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createIfStatement
▸ Const
createIfStatement(thenStatement
: Statement, elseStatement
: Statement): (Anonymous function)
Defined in src/index.ts:311
Parameters:
Name | Type |
------ | ------ |
thenStatement
| Statement |
elseStatement
| Statement |
Returns: (Anonymous function)
createImmediatelyInvokedArrowFunction
▸ Const
createImmediatelyInvokedArrowFunction(param
: ParameterDeclaration | undefined, paramValue
: Expression | undefined): (Anonymous function)
Defined in src/index.ts:312
Parameters:
Name | Type |
------ | ------ |
param
| ParameterDeclaration | undefined |
paramValue
| Expression | undefined |
Returns: (Anonymous function)
createImmediatelyInvokedFunctionExpression
▸ Const
createImmediatelyInvokedFunctionExpression(param
: ParameterDeclaration, paramValue
: Expression): (Anonymous function)
Defined in src/index.ts:313
Parameters:
Name | Type |
------ | ------ |
param
| ParameterDeclaration |
paramValue
| Expression |
Returns: (Anonymous function)
createImportClause
▸ Const
createImportClause(name
: Identifier | undefined, namedBindings
: ts.NamedImportBindings | undefined): (Anonymous function)
Defined in src/index.ts:314
Parameters:
Name | Type |
------ | ------ |
name
| Identifier | undefined |
namedBindings
| ts.NamedImportBindings | undefined |
Returns: (Anonymous function)
createImportSpecifier
▸ Const
createImportSpecifier(name
: Identifier): (Anonymous function)
Defined in src/index.ts:185
Parameters:
Name | Type |
------ | ------ |
name
| Identifier |
Returns: (Anonymous function)
createIndexedAccessTypeNode
▸ Const
createIndexedAccessTypeNode(indexType
: TypeNode): (Anonymous function)
Defined in src/index.ts:186
Parameters:
Name | Type |
------ | ------ |
indexType
| TypeNode |
Returns: (Anonymous function)
createInequality
▸ Const
createInequality(right
: Expression): (Anonymous function)
Defined in src/index.ts:187
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createJSDocAuthorTag
▸ Const
createJSDocAuthorTag(comment?
: string): (Anonymous function)
Defined in src/index.ts:188
Parameters:
Name | Type |
------ | ------ |
comment?
| string |
Returns: (Anonymous function)
createJSDocClassTag
▸ Const
createJSDocClassTag(comment?
: string): (Anonymous function)
Defined in src/index.ts:189
Parameters:
Name | Type |
------ | ------ |
comment?
| string |
Returns: (Anonymous function)
createJSDocComment
▸ Const
createJSDocComment(tags
: readonly JSDocTag[] | undefined): (Anonymous function)
Defined in src/index.ts:190
Parameters:
Name | Type |
------ | ------ |
tags
| readonly JSDocTag[] | undefined |
Returns: (Anonymous function)
createJSDocDeprecatedTag
▸ Const
createJSDocDeprecatedTag(comment?
: string): (Anonymous function)
Defined in src/index.ts:191
Parameters:
Name | Type |
------ | ------ |
comment?
| string |
Returns: (Anonymous function)
createJSDocEnumTag
▸ Const
createJSDocEnumTag(typeExpression
: JSDocTypeExpression, comment?
: string): (Anonymous function)
Defined in src/index.ts:315
Parameters:
Name | Type |
------ | ------ |
typeExpression
| JSDocTypeExpression |
comment?
| string |
Returns: (Anonymous function)
createJSDocFunctionType
▸ Const
createJSDocFunctionType(type
: TypeNode | undefined): (Anonymous function)
Defined in src/index.ts:192
Parameters:
Name | Type |
------ | ------ |
type
| TypeNode | undefined |
Returns: (Anonymous function)
createJSDocPrivateTag
▸ Const
createJSDocPrivateTag(comment?
: string): (Anonymous function)
Defined in src/index.ts:193
Parameters:
Name | Type |
------ | ------ |
comment?
| string |
Returns: (Anonymous function)
createJSDocProtectedTag
▸ Const
createJSDocProtectedTag(comment?
: string): (Anonymous function)
Defined in src/index.ts:194
Parameters:
Name | Type |
------ | ------ |
comment?
| string |
Returns: (Anonymous function)
createJSDocPublicTag
▸ Const
createJSDocPublicTag(comment?
: string): (Anonymous function)
Defined in src/index.ts:195
Parameters:
Name | Type |
------ | ------ |
comment?
| string |
Returns: (Anonymous function)
createJSDocReadonlyTag
▸ Const
createJSDocReadonlyTag(comment?
: string): (Anonymous function)
Defined in src/index.ts:196
Parameters:
Name | Type |
------ | ------ |
comment?
| string |
Returns: (Anonymous function)
createJSDocReturnTag
▸ Const
createJSDocReturnTag(typeExpression
: JSDocTypeExpression, comment?
: string): (Anonymous function)
Defined in src/index.ts:316
Parameters:
Name | Type |
------ | ------ |
typeExpression
| JSDocTypeExpression |
comment?
| string |
Returns: (Anonymous function)
createJSDocSignature
▸ Const
createJSDocSignature(parameters
: readonly JSDocParameterTag[], type
: JSDocReturnTag): (Anonymous function)
Defined in src/index.ts:317
Parameters:
Name | Type |
------ | ------ |
parameters
| readonly JSDocParameterTag[] |
type
| JSDocReturnTag |
Returns: (Anonymous function)
createJSDocThisTag
▸ Const
createJSDocThisTag(typeExpression
: JSDocTypeExpression, comment?
: string): (Anonymous function)
Defined in src/index.ts:318
Parameters:
Name | Type |
------ | ------ |
typeExpression
| JSDocTypeExpression |
comment?
| string |
Returns: (Anonymous function)
createJSDocTypeLiteral
▸ Const
createJSDocTypeLiteral(isArrayType
: boolean): (Anonymous function)
Defined in src/index.ts:197
Parameters:
Name | Type |
------ | ------ |
isArrayType
| boolean |
Returns: (Anonymous function)
createJSDocTypeTag
▸ Const
createJSDocTypeTag(typeExpression
: JSDocTypeExpression, comment?
: string): (Anonymous function)
Defined in src/index.ts:319
Parameters:
Name | Type |
------ | ------ |
typeExpression
| JSDocTypeExpression |
comment?
| string |
Returns: (Anonymous function)
createJSDocUnknownTag
▸ Const
createJSDocUnknownTag(comment?
: string): (Anonymous function)
Defined in src/index.ts:198
Parameters:
Name | Type |
------ | ------ |
comment?
| string |
Returns: (Anonymous function)
createJsxAttribute
▸ Const
createJsxAttribute(initializer
: StringLiteral | JsxExpression | undefined): (Anonymous function)
Defined in src/index.ts:199
Parameters:
Name | Type |
------ | ------ |
initializer
| StringLiteral | JsxExpression | undefined |
Returns: (Anonymous function)
createJsxElement
▸ Const
createJsxElement(children
: readonly ts.JsxChild[], closingElement
: JsxClosingElement): (Anonymous function)
Defined in src/index.ts:320
Parameters:
Name | Type |
------ | ------ |
children
| readonly ts.JsxChild[] |
closingElement
| JsxClosingElement |
Returns: (Anonymous function)
createJsxExpression
▸ Const
createJsxExpression(expression
: Expression | undefined): (Anonymous function)
Defined in src/index.ts:200
Parameters:
Name | Type |
------ | ------ |
expression
| Expression | undefined |
Returns: (Anonymous function)
createJsxFragment
▸ Const
createJsxFragment(children
: readonly ts.JsxChild[], closingFragment
: JsxClosingFragment): (Anonymous function)
Defined in src/index.ts:321
Parameters:
Name | Type |
------ | ------ |
children
| readonly ts.JsxChild[] |
closingFragment
| JsxClosingFragment |
Returns: (Anonymous function)
createJsxOpeningElement
▸ Const
createJsxOpeningElement(typeArguments
: readonly TypeNode[] | undefined, attributes
: JsxAttributes): (Anonymous function)
Defined in src/index.ts:322
Parameters:
Name | Type |
------ | ------ |
typeArguments
| readonly TypeNode[] | undefined |
attributes
| JsxAttributes |
Returns: (Anonymous function)
createJsxSelfClosingElement
▸ Const
createJsxSelfClosingElement(typeArguments
: readonly TypeNode[] | undefined, attributes
: JsxAttributes): (Anonymous function)
Defined in src/index.ts:323
Parameters:
Name | Type |
------ | ------ |
typeArguments
| readonly TypeNode[] | undefined |
attributes
| JsxAttributes |
Returns: (Anonymous function)
createJsxText
▸ Const
createJsxText(containsOnlyTriviaWhiteSpaces
: boolean): (Anonymous function)
Defined in src/index.ts:201
Parameters:
Name | Type |
------ | ------ |
containsOnlyTriviaWhiteSpaces
| boolean |
Returns: (Anonymous function)
createLabeledStatement
▸ Const
createLabeledStatement(statement
: Statement): (Anonymous function)
Defined in src/index.ts:202
Parameters:
Name | Type |
------ | ------ |
statement
| Statement |
Returns: (Anonymous function)
createLeftShift
▸ Const
createLeftShift(right
: Expression): (Anonymous function)
Defined in src/index.ts:203
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createLessThan
▸ Const
createLessThan(right
: Expression): (Anonymous function)
Defined in src/index.ts:204
Parameters:
Name | Type |
------ | ------ |
right
| Expression |
Returns: (Anonymous function)
createLessThanEquals
▸ Const
createLessThanEquals(right
: Expression): (Anonymous function)
Defined in src/index.ts:205