@ovotech/ts-compose
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -27,2 +27,10 @@ import * as ts from 'typescript'; | ||
export declare const Protected: (isProtected?: boolean | undefined) => ts.Token<ts.SyntaxKind.ProtectedKeyword>[]; | ||
export declare const Method: ({ typeArgs, name, params, type, jsDoc, isOptional, }: { | ||
typeArgs?: ts.TypeParameterDeclaration[] | undefined; | ||
params: ts.ParameterDeclaration[]; | ||
name: string | ts.Identifier; | ||
isOptional?: boolean | undefined; | ||
type?: ts.TypeNode | undefined; | ||
jsDoc?: string | undefined; | ||
}) => ts.MethodSignature; | ||
export declare const Prop: ({ name, type, initializer, isReadonly, isOptional, isPublic, isPrivate, isProtected, jsDoc, }: { | ||
@@ -29,0 +37,0 @@ name: string | ts.Identifier | ts.StringLiteral | ts.NumericLiteral | ts.ComputedPropertyName; |
@@ -51,2 +51,3 @@ "use strict"; | ||
exports.Protected = (isProtected) => isProtected ? [ts.createModifier(ts.SyntaxKind.ProtectedKeyword)] : []; | ||
exports.Method = ({ typeArgs, name, params, type, jsDoc, isOptional, }) => docs_1.withJSDoc(ts.createMethodSignature(typeArgs, params, type, name, exports.Optional(isOptional)), jsDoc); | ||
exports.Prop = ({ name, type, initializer, isReadonly, isOptional, isPublic, isPrivate, isProtected, jsDoc, }) => docs_1.withJSDoc(ts.createPropertySignature([ | ||
@@ -53,0 +54,0 @@ ...exports.Readonly(isReadonly), |
{ | ||
"name": "@ovotech/ts-compose", | ||
"description": "An ts compiler api wrapper", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"main": "dist/index.js", | ||
@@ -33,3 +33,3 @@ "types": "dist/index.d.ts", | ||
}, | ||
"gitHead": "ebe20d61fafd9e39f48e4d6339f7ac8c0d4217f4" | ||
"gitHead": "b83b1f9109e515227201dabfa0d1b41443496510" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20763
355