Skip to content

Here is the typescript interface for the Function #2

@lygstate

Description

@lygstate

May this used to create the JSON schema?

export interface ApiInformation {
    Index: number
    Platform: string
    Name: string
    DllImport: string
    ReturnType: TypeInfo
    Params: TypeInfo[]
}
export interface TypeInfo {
    Kind: string
    Name: string
    TargetKind: string
    Api: string
    Parents: any []
}
export interface ParamInfo {
    Name: string
    Type: TypeInfo
    Attrs: string[]
}
export interface FunctionInfo {
    Name: string
    SetLastError: boolean
    DllImport: string
    ReturnType: TypeInfo
    ReturnAttrs: string[]
    Architectures: string[]
    Platform: string | null
    // Attrs: string[] /* There is no function Attrs */
    Params: ParamInfo[]
}

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