0.0.1 • Published 11 months ago
type-link v0.0.1
type-link
EXPERIMENTAL: Retrieve type definitions from a URL (like Deno)
Installation
npm install --global type-link
CLI Usage
(npx / bunx) type-link <operation> <options>
Operations
cache <filename> [--clear] [--reload]
- cache http(s) type-imports (import "https://../type.d.ts";)
version
- prints version and cache location
usage
- prints usage
Examples
Checkout the examples folder on GitHub.
// index.ts
import type { KeyLike } from 'https://deno.land/x/jose@v4.13.2/types.d.ts';
Make sure you're inside your project's root directory.
Cache all type-imports used by "index.ts"
type-link cache ./index.ts
Reload and cache all type-imports used by "index.ts"
type-link cache ./index.ts --reload
Clear global cache
type-link cache --clear
0.0.1
11 months ago