https://github.com/nshen/as2ts
Convert ActionScript 3 to TypeScript on web
https://github.com/nshen/as2ts
Last synced: 7 months ago
JSON representation
Convert ActionScript 3 to TypeScript on web
- Host: GitHub
- URL: https://github.com/nshen/as2ts
- Owner: nshen
- Created: 2014-11-20T16:59:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-23T09:15:57.000Z (almost 11 years ago)
- Last Synced: 2025-03-17T22:44:55.146Z (7 months ago)
- Language: JavaScript
- Homepage: http://nshen.github.io/as2ts/
- Size: 247 KB
- Stars: 43
- Watchers: 3
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AS2TS
=====Convert `ActionScript 3` to `TypeScript` using pure HTML5.
Try it:
---http://www.nshen.net/as2ts/
Conversion:
---- `Boolean` to `boolean`
- `uint` / `int` / `Number` to `number`
- `String` to `string`
- `:*` to `:any`
- `package` to `module`
- comment out `import` statements ?
- `public class` to `export class`
- `public final class` to `export class`
- `public interface` to `export interface`
- `public function class_name(...):void` to `constructor(...)`
- `internal` to `public`
- `static (public|private|protected)` to `(public|private|protected) static`
- `(private|public|protected) var` to `(private|public|protected)`
- `(private|public|protected) const` to `(private|public|protected)`
- `(override) (private|public|protected) function` to `(private|public|protected)`
- `(private|public|protected) static var` to `(private|public|protected) static`
- `(private|public|protected) static const` to `(private|public|protected) static`
- `(private|public|protected) static function` to `(private|public|protected) static`
- local `const` to `var`
- `A as B` to ` A`
- `:Array` to `:any[]`
- `:Vector. =` to `type[] =`
- `:Vector.;` to `type[];`
- `: Vector. {` to `type[] {`
- `new Vector.(7,true)` to `[]`
- `new [1,2,3]` to `[1,2,3]`
- `Vector.([1, 2, 3])` to `[1, 2, 3]`
- `trace` to `console.log`Contact me:
---nshen121[at]gmail.com