gleam icon indicating copy to clipboard operation
gleam copied to clipboard

Typescript Generation: Invalid output

Open lucasavila00 opened this issue 1 year ago • 1 comments

import gleam/javascript/promise

pub type Task(a) =
  fn() -> promise.Promise(a)

pub fn main() {
  1
}

compiles to this

import * as promise from "../../gleam_javascript/dist/gleam/javascript/promise.d.ts";

export type Task = () => promise.Promise$<RC>;

export function main(): number;

where RC does not exist.

lucasavila00 avatar Aug 08 '22 02:08 lucasavila00

Thank you

lpil avatar Aug 08 '22 11:08 lpil