Skip to content

App codegen: remove arg types/interfaces #120

@krisbitney

Description

@krisbitney

We can simplify app codegen by removing the Args types.

Current method codegen:

export interface TestImport_Module_Args_anotherMethod {
  arg1: Array<Types.String>;
  arg2: Types.Int32;
}

async anotherMethod(
  args: TestImport_Module_Args_anotherMethod,
  client?: CoreClient,
  env?: Record<string, unknown>,
  uri?: string,
): Promise<InvokeResult<Types.Int32>>

Proposed method codegen:

async anotherMethod(
  arg1: Array<Types.String>,
  arg2: Types.Int32,
  _options: {
    client?: CoreClient,
    env?: Record<string, unknown>,
    uri?: string,
  }
): Promise<InvokeResult<Types.Int32>>

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