Skip to content

ns typings android "androidx.activity:activity" may see <set-?> as value param names. #83

Closed

Description

@NathanWalker

Example A:

public setMediaType$activity_release(<set-?>: androidx.activity.result.contract.ActivityResultContracts.PickVisualMedia.VisualMediaType): void;

The <set-?> is invalid. Should print as value.

B

Other entries may print as public createOnBackAnimationCallback(onBackStarted: any<any,any>, onBackProgressed: any<any,any>, onBackInvoked: any, onBackCancelled: any): globalAndroid.window.OnBackInvokedCallback;

where any<any,any> should be just any or proper generic.

C

public static enable($i$a$-also-EdgeToEdge$enableEdgeToEdge$impl$1: androidx.activity.ComponentActivity, it: androidx.activity.SystemBarStyle, view: androidx.activity.SystemBarStyle): void;

can be:

public static enable(activity: androidx.activity.ComponentActivity, it: androidx.activity.SystemBarStyle, view: androidx.activity.SystemBarStyle): void;

D

public onStateChanged(servedView: androidx.lifecycle.LifecycleOwner, $i$a$-synchronized-ImmLeaksCleaner$onStateChanged$1$success$1: androidx.lifecycle.Lifecycle.Event): void;

can be:

public onStateChanged(servedView: androidx.lifecycle.LifecycleOwner, event: androidx.lifecycle.Lifecycle.Event): void;

E

public getDetectDarkMode$activity_release(): any<globalAndroid.content.res.Resources,java.lang.Boolean>;

can be:

public getDetectDarkMode$activity_release(): java.util.HashMap<globalAndroid.content.res.Resources,java.lang.Boolean>;

F

public static auto(lightScrim: number, darkScrim: number, detectDarkMode: any<any,java.lang.Boolean>): androidx.activity.SystemBarStyle;

can be:

public static auto(lightScrim: number, darkScrim: number, detectDarkMode: boolean): androidx.activity.SystemBarStyle;

Activity

  1. edusperoni commented on Nov 8, 2026

    @edusperoni
    Collaborator

    Fixed in #89 (c10d0bc): Kotlin <set-?> and inlined-lambda parameter names, any<...> leftovers from ignored namespaces, and $$serializer classes now generate valid TypeScript. Parameter names are now looked up by JVM slot, so they're also correct where they used to be shifted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions