Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

Support for Typescript #61

Open
du-dung opened this issue Nov 6, 2020 · 1 comment
Open

Support for Typescript #61

du-dung opened this issue Nov 6, 2020 · 1 comment
Labels
new file type Request to support previews for a new file type

Comments

@du-dung
Copy link

du-dung commented Nov 6, 2020

  • What's the file's extension?
    .ts

  • What's the file's Uniform Type Identifier (output of mdls -name kMDItemContentType /path/to/your/file)?
    kMDItemContentType = "public.mpeg-2-transport-stream"

  • What kind of preview do you expect? How can it be generated?
    I wish it looked like a javascript file.
    As far as I know, typescript started from javascript, so I think it'll probably be made similar.

@du-dung du-dung added the new file type Request to support previews for a new file type label Nov 6, 2020
@hirbod
Copy link

hirbod commented Nov 13, 2020

.ts is also a video format container. The ContentType generated by your terminal output is actually "right", but also wrong because you want to support "application/x-typescript", "text/x.typescript" or "text/prs.typescript"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new file type Request to support previews for a new file type
Projects
None yet
Development

No branches or pull requests

2 participants