Arjan van Wieringen
08/07/2023, 5:05 AM[S, T] and that my TS consumer code can use array desctructuring. However, I see no way to cleverly do this in Kotlin.Andromadus Naruto
08/07/2023, 8:24 AMPair?turansky
08/07/2023, 9:34 AMJsTuple2<S, T> .
To create it you can use tupleOf factory.
cc @Sergei GrishchenkoArjan van Wieringen
08/07/2023, 5:33 PMexport declare namespace todo {
function useTodoViewModel(): JsTuple2<todo.TodoState, TodoMutableViewModel>;
}
I'd expect:
export declare namespace todo {
function useTodoViewModel(): [todo.TodoState, TodoMutableViewModel];
}
It also throws an error for JsTuple2. I don't think it is supportedArjan van Wieringen
08/07/2023, 5:37 PMturansky
08/07/2023, 8:21 PMJsTuple2 declaration in additional .d.ts fileArjan van Wieringen
08/08/2023, 5:02 AM