Skip to content

Cannot find name 'TypedArray'. #2038

@trusktr

Description

@trusktr

reproduction: https://tinyurl.com/2h4mss46

function bufferData<T>(array: TypedArray<T>): i32 {
  return array.length
}

export function fib(n: i32): i32 {
  const a = new Float32Array(10)
  return bufferData(a)
}

When compiled with asc it errors with

ERROR TS2304: Cannot find name 'TypedArray'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions