3 ms·
Was .ts or .tsx not available or something?
by hoofhearted 3y ago
Was .ts or .tsx not available or something?
- mrcwinn 3y agoThat would a very misleading choice. .astro files are not .ts or .tsx. Similar to .vue files, they have their own structure that needs to be interpreted.
- hoofhearted 3y ago.tsx would be a totally practical use for their files. Please explain why they needed to create their own style?
- chromakode 3y agoAstro files contain markup and separators which are not valid Typescript. They also have a different execution model.
- wruza 3y agoI just read the part about astro components and reasoning about “code fence”. How exactly do you propose to use .tsx files for their case? Specifically, how would you extract a template but run the rest of the code? I have some ideas, but they aren’t more practical than just splitting it across that fence.
- LocalH 3y ago.ts is the extension for MPEG-2 transport stream files, at the very least.
- hoofhearted 3y ago.ts = typescript file. Just a plain old dumb JavaScript file, but just written in the Typescript superset.