Skip to content

Fix map definition #11

Description

@commandblock2
import type { KAnnotatedElement } from '../../kotlin/reflect/KAnnotatedElement.d.ts'
import type { Any } from '../../java/lang/Any.d.ts'
import type { KParameter } from '../../kotlin/reflect/KParameter.d.ts'
import type { KType } from '../../kotlin/reflect/KType.d.ts'
import type { KTypeParameter } from '../../kotlin/reflect/KTypeParameter.d.ts'
import type { KVisibility } from '../../kotlin/reflect/KVisibility.d.ts'
export interface KCallable<R extends Any | null> extends KAnnotatedElement, Any {
    isAbstract: boolean;
    isFinal: boolean;
    isOpen: boolean;
    isSuspend: boolean;
    name: string;
    parameters: KParameter[];
    returnType: KType;
    typeParameters: KTypeParameter[];
    visibility: KVisibility | null;
    call(args: (Any | null)[]): R;
    callBy(args: { [key: KParameter]: Any | null }): R;
}

An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type.ts(1268)

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions