Skip to content

A little utility type package that allows you to access the current TypeScript version from your types.

License

Notifications You must be signed in to change notification settings

phryneas/ts-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@phryneas/ts-version

A little utility type package that allows you to access the current TypeScript version from your types.

import { TSVersion } from "@phryneas/ts-version";

type Version = `${TSVersion.Major}.${TSVersion.Minor}`;

type VersionDependentType = TSVersion.AtLeast<4, 7> extends true
  ? "we're in the future!"
  : "it's the stone age!";

About

A little utility type package that allows you to access the current TypeScript version from your types.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published