This repository was archived by the owner on Nov 6, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class TypeScriptToKotlin(
56
56
override val hasMembersOpenModifier = false
57
57
58
58
fun getAdditionalAnnotations (node : Node ): List <KtAnnotation > {
59
- val isShouldSkip = requiredModifier == = SyntaxKind .DeclareKeyword && ! (node.modifiers?.arr?.any { it.kind == = requiredModifier } ? : false )
59
+ val isShouldSkip = requiredModifier == = SyntaxKind .DeclareKeyword && ! (node.modifiers?.arr?.any { it.kind == = requiredModifier || it.kind == = SyntaxKind . ExportKeyword } ? : false )
60
60
if (isShouldSkip) return DEFAULT_FAKE_ANNOTATION
61
61
62
62
return NO_ANNOTATIONS
Original file line number Diff line number Diff line change
1
+ package exportTypes
2
+
3
+ external interface FooInterface {
4
+ fun methodWithOutArgs ()
5
+ fun methodWithString (s : String ): String
6
+ fun methodWithManyArgs (n : Number , settings : Bar ): Boolean
7
+ }
8
+ external open class FooClass {
9
+ open fun methodWithOutArgs (): Unit = definedExternally
10
+ open fun methodWithString (s : String ): String = definedExternally
11
+ open fun methodWithManyArgs (n : Number , settings : Bar ): Boolean = definedExternally
12
+ }
Original file line number Diff line number Diff line change
1
+ export interface FooInterface {
2
+ methodWithOutArgs ( ) ;
3
+ methodWithString ( s : string ) : string ;
4
+ methodWithManyArgs ( n : number , settings : Bar ) : boolean ;
5
+ }
6
+
7
+ export class FooClass {
8
+ methodWithOutArgs ( ) ;
9
+ methodWithString ( s : string ) : string ;
10
+ methodWithManyArgs ( n : number , settings : Bar ) : boolean ;
11
+ }
You can’t perform that action at this time.
0 commit comments