@kubb/parser
Advanced tools
Comparing version 1.12.0-canary.20231016T092149 to 1.12.0-canary.20231016T100000
@@ -37,3 +37,4 @@ import ts from 'typescript'; | ||
}): ts.TypeNode | null; | ||
declare function createPropertySignature({ modifiers, name, questionToken, type, }: { | ||
declare function createPropertySignature({ readOnly, modifiers, name, questionToken, type, }: { | ||
readOnly?: boolean; | ||
modifiers?: Array<ts.Modifier>; | ||
@@ -40,0 +41,0 @@ name: ts.PropertyName | string; |
@@ -78,3 +78,4 @@ import { createRequire } from 'module'; | ||
function createPropertySignature({ | ||
modifiers: modifiers2, | ||
readOnly, | ||
modifiers: modifiers2 = [], | ||
name, | ||
@@ -84,3 +85,8 @@ questionToken: questionToken2, | ||
}) { | ||
return factory.createPropertySignature(modifiers2, propertyName(name), createQuestionToken(questionToken2), type); | ||
return factory.createPropertySignature( | ||
[...modifiers2, readOnly ? factory.createToken(ts.SyntaxKind.ReadonlyKeyword) : void 0].filter(Boolean), | ||
propertyName(name), | ||
createQuestionToken(questionToken2), | ||
type | ||
); | ||
} | ||
@@ -87,0 +93,0 @@ function createParameterSignature(name, { |
{ | ||
"name": "@kubb/parser", | ||
"version": "1.12.0-canary.20231016T092149", | ||
"version": "1.12.0-canary.20231016T100000", | ||
"description": "Generator parser", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
72498
729