Update according to TS 0.9

'export = internal' is illegal.