diff --git a/README.md b/README.md index 9289b06..31c17fc 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,14 @@ Let assume that you have successfully setup a java project Create a file `package-info.java` and annotate the given package with `@Java2TS` that will contain all the `@Type` of which you want the Typescript declaration. +** Type Attributes ** + +Name | Mandatory | Type | Description +--- | --- | --- | --- +**value** | Yes | Class | Full Qualified Name of Java class +**alias** | No | String | Assign a new name to exported class in typescript +**export** | No | boolean | if **true**, other than typescript declaration adds definition in file *`-types.ts`. **It is need for instantiable classes, in order to use `new` operator or factory method(s)** + **Example** ```Java @Java2TS(declare = { @@ -138,5 +146,5 @@ The easier way to start your **Typescript on JVM** project is using the provided >mvn archetype:generate \ >-DarchetypeGroupId=org.bsc.processor \ >-DarchetypeArtifactId=java2ts-processor-archetype \ ->-DarchetypeVersion=1.0-beta2 +>-DarchetypeVersion=1.0-rc1 >``` diff --git a/archetype/pom.xml b/archetype/pom.xml index 9102949..b150b05 100644 --- a/archetype/pom.xml +++ b/archetype/pom.xml @@ -5,7 +5,7 @@ org.bsc.processor java2ts-processor-parent - 1.0.0-SNAPSHOT + 1.0-rc1 java2ts-processor-archetype java2ts-processor::archetype - ${project.version} diff --git a/archetype/src/main/resources/archetype-resources/tsconfig.json b/archetype/src/main/resources/archetype-resources/tsconfig.json index 8eaff32..3441fff 100644 --- a/archetype/src/main/resources/archetype-resources/tsconfig.json +++ b/archetype/src/main/resources/archetype-resources/tsconfig.json @@ -20,9 +20,9 @@ // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ /* Strict Type-Checking Options */ - "strict": true, /* Enable all strict type-checking options. */ + "strict": true, /* Enable all strict type-checking options. */ // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ - // "strictNullChecks": true, /* Enable strict null checks. */ + "strictNullChecks": false, /* Enable strict null checks. */ // "strictFunctionTypes": true, /* Enable strict checking of function types. */ // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ diff --git a/core/pom.xml b/core/pom.xml index 92ec124..d2db4df 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -3,7 +3,7 @@ org.bsc.processor java2ts-processor-parent - 1.0.0-SNAPSHOT + 1.0-rc1 java2ts-processor-core java2ts-processor::core - ${project.version} diff --git a/pom.xml b/pom.xml index 45f62a0..04b56cd 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.bsc.processor java2ts-processor-parent - 1.0.0-SNAPSHOT + 1.0-rc1 pom java2ts-processor::parent - ${project.version} diff --git a/processor/pom.xml b/processor/pom.xml index ff29a59..badb585 100644 --- a/processor/pom.xml +++ b/processor/pom.xml @@ -7,7 +7,7 @@ org.bsc.processor java2ts-processor-parent - 1.0.0-SNAPSHOT + 1.0-rc1