ApplicationText-based
application/typescript
TypeScript
Reference for application/typescript, the MIME type for TypeScript source files used in modern web and server-side development.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
Expected extensions: .ts, .tsx, .mts
HTTP Content-Type Header
HTTP Header
Content-Type: application/typescript; charset=utf-8Associated File Extensions
.ts.tsx.mts
Quick Facts
| MIME Type | application/typescript |
| Category | Application |
| Type | Text-based (human-readable) |
| Extensions | .ts, .tsx, .mts |
Common Usage
TypeScript is a typed superset of JavaScript used for large-scale application development. This MIME type identifies TypeScript source files in development servers, code editors, and build pipelines.
TypeScript files are compiled to JavaScript before being served to browsers.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.ts" type="application/typescript">
<!-- Or for script/media elements -->
<script type="application/typescript" src="file.ts"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('application/typescript');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'application/typescript' });nginx
# nginx.conf — add to types block or use default
types {
application/typescript ts tsx mts;
}
# Or set for a specific location
location /api/ {
default_type application/typescript;
}Related MIME Types
More Application MIME Types
Other application types in the Application family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.