README.md in rbs2ts-1.2.0 vs README.md in rbs2ts-1.3.0
- old
+ new
@@ -50,10 +50,11 @@
f: Float
}?
}
class Klass
+ @val: String
attr_accessor a: String
attr_reader b: Integer
attr_writer c: Bool
attr_reader r: {
@@ -88,11 +89,18 @@
**String rest_keywords
) -> [{ s: String, f: Float }?]
end
module Module
+ @val: String
+ type AliasType = String
+
def func: (String, Integer) -> { str: String, int: Integer }
+
+ class NestedClass
+ attr_accessor a: AliasType
+ end
end
interface _Interface
def func: (String, Integer) -> { str: String, int: Integer }
end
@@ -144,10 +152,11 @@
f: number;
} | null | undefined;
};
export declare class Klass {
+ val: string;
a: string;
readonly b: number;
c: boolean;
readonly r: {
d: string;
@@ -177,12 +186,17 @@
f: number;
} | null | undefined)];
};
export namespace Module {
+ export declare let val: string;
+ export type AliasType = string;
export declare function func(arg1: string, arg2: number): {
str: string;
int: number;
+ };
+ export declare class NestedClass {
+ a: AliasType;
};
};
export interface Interface {
func(arg1: string, arg2: number): {