Skip to content

Generic function support #4

@sxzz

Description

@sxzz

Consider the code below

const echo = quansync({
  sync: (v: any) => v,
  async: async (v: any) => v,
}) as {
  <T>(val: T): QuansyncGenerator<T> & Promise<T>
  sync: <T>(val: T) => T
  async: <T>(val: T) => Promise<T>
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions