Skip to content

gnlow/tsm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tsm

tsm is experimental project, and is not ready for production

Use TypeScript everywhere

  • Transfiles TS to JS via deno_emit
  • Provides type information via x-typescript-types header

Usage

// https://examples.deno.land/import-export/util.ts
export function sayHello(thing: string) {
  console.log(`Hello, ${thing}!`);
}
export interface Foo {}
export class Bar {}
export const baz = "baz";
// https://tsm.deno.dev/https://examples.deno.land/import-export/util.ts
export function sayHello(thing) {
    console.log(`Hello, ${thing}!`);
}
export class Bar {
}
export const baz = "baz";
<script type="module" src="https://tsm.deno.dev/https://examples.deno.land/import-export/util.ts"></script>

About

tsm: CDN<TS => JS>

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published