react2solid icon indicating copy to clipboard operation
react2solid copied to clipboard

typescript frontend

Open milahu opened this issue 3 years ago • 2 comments

currently the converter fails on typescript input

let a: number = 1 

// error: Missing semicolon.
function f(): string {
  return ""
}

// error: Unexpected token, expected "{"
import type { X } from 'x'

// error: Unexpected token, expected "from"
export interface X {
  s: string
}

// error: This experimental syntax requires enabling one of the following parser plugin(s): "flow", "typescript".
interface X {
  s: string
}

// error: Unexpected reserved word 'interface'.

etc

milahu avatar Oct 30 '22 14:10 milahu

solved in https://github.com/milahu/putout-plugin-react2solid

milahu avatar Oct 30 '22 16:10 milahu

@milahu Thanks for your report. I will closely check and update

rrjanbiah avatar Oct 30 '22 17:10 rrjanbiah