ts-creator
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "ts-creator", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A code generator to generate TypeScript code generator from TypeScript code", | ||
"main": "dist/src/index.js", | ||
"types": "dist/types/src", | ||
"main": "dist/index.js", | ||
"types": "dist/types", | ||
"scripts": { | ||
@@ -8,0 +8,0 @@ "build": "tsc -p ./tsconfig.json", |
@@ -54,37 +54,32 @@ # ts-creator | ||
```ts | ||
ts.updateSourceFileNode( | ||
ts.createSourceFile('test.ts', '', ts.ScriptTarget.Latest), | ||
ts.createFunctionDeclaration( | ||
undefined, | ||
undefined, | ||
undefined, | ||
ts.createIdentifier('foo'), | ||
undefined, | ||
[ | ||
ts.createFunctionDeclaration( | ||
ts.createParameter( | ||
undefined, | ||
undefined, | ||
undefined, | ||
ts.createIdentifier('foo'), | ||
ts.createIdentifier('bar'), | ||
undefined, | ||
[ | ||
ts.createParameter( | ||
undefined, | ||
undefined, | ||
undefined, | ||
ts.createKeywordTypeNode(ts.SyntaxKind.NumberKeyword), | ||
undefined | ||
) | ||
], | ||
ts.createKeywordTypeNode(ts.SyntaxKind.NumberKeyword), | ||
ts.createBlock( | ||
[ | ||
ts.createReturn( | ||
ts.createBinary( | ||
ts.createIdentifier('bar'), | ||
undefined, | ||
ts.createToken(ts.SyntaxKind.NumberKeyword), | ||
undefined | ||
ts.createToken(ts.SyntaxKind.PlusToken), | ||
ts.createNumericLiteral('1') | ||
) | ||
], | ||
ts.createToken(ts.SyntaxKind.NumberKeyword), | ||
ts.createBlock( | ||
[ | ||
ts.createReturn( | ||
ts.createBinary( | ||
ts.createIdentifier('bar'), | ||
ts.createToken(ts.SyntaxKind.PlusToken), | ||
ts.createNumericLiteral('1') | ||
) | ||
) | ||
], | ||
true | ||
) | ||
) | ||
] | ||
], | ||
true | ||
) | ||
) | ||
@@ -105,2 +100,1 @@ | ||
- [ ] JSDoc | ||
- [ ] Jsx |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
163190
99