Comments (1)
That inteface is correct :). But I can see what you are trying to do. You can use:
data class Test(
val isOn: Boolean
)
val Test.isOff: Boolean
get() = !isOn
from ts-generator.
Related Issues (20)
- Compile from Kotlin to JS with type definitions HOT 3
- Support for functions
- Enums as enums HOT 1
- Nullable type from mappings HOT 3
- Output properties in declaration order HOT 1
- Add support for readonly typescript types
- exception when running from java
- Kotlin Maps with non-string non-numeric keys should map to Map instead of an Object
- Kotlin Map with enum key should use [item in Enum] instead of [item: Enum]
- Is this project maintained? HOT 10
- String Enums
- Feature Request: ability to annotate integer fields HOT 1
- Sharing constants HOT 1
- Generated typescript doesn't use '?' for null types HOT 2
- Propose an option to generate Optionals Instead of Nullables HOT 3
- tag version 1.1.2 HOT 1
- Support for sealed classes HOT 3
- Field ordering
- Gradle plugin HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-generator.