Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Here is the typescript interface for the Function #2

Open
lygstate opened this issue Sep 4, 2021 · 1 comment
Open

Here is the typescript interface for the Function #2

lygstate opened this issue Sep 4, 2021 · 1 comment

Comments

@lygstate
Copy link

lygstate commented Sep 4, 2021

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[]
}
@marler8997
Copy link
Collaborator

marler8997 commented Sep 5, 2021

I was thinking something more general that would work for any language. Something like this: https://json-schema.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants