1.0.5 • Published 15 days ago
@huolala-tech/nad-builder v1.0.5
nad-builder ·
Convert the Java AST to client-side code.
Include
yarn add @huolala-tech/nad-builder
or
npm install @huolala-tech/nad-builder --save
Demo
import { Builder } from '@huolala-tech/nad-builder';
// You don't need to write this manually, as it can be obtained from the Java service.
const defs = {
routes: [
{
name: 'foo',
bean: 'test.Demo',
methods: ['POST'],
patterns: ['/foo'],
parameters: [{ name: 'id', type: 'java.lang.Long' }],
returnType: 'java.lang.Long',
},
],
};
const base = 'http://localhost';
const target = 'ts';
const { code } = new Builder({ defs, target, base });
console.log(code); // Output the generated TypeScript code
1.0.5
15 days ago
1.0.4
10 months ago
1.0.3
11 months ago
1.0.2
11 months ago
1.0.1
11 months ago
1.0.0
11 months ago
0.0.10
1 year ago
0.0.11
1 year ago
0.0.12
1 year ago
0.0.13
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago