Registry / type-stubs / ts-vista

ts-vista

JSON →
library0.2.3jsnpmunverified

A utility to enhance TypeScript by providing additional type utilities and transformations. Current stable version is 0.2.3, with release cadence being sporadic as it is early-stage. It differentiates by offering basic type enhancements with a focus on simplicity and sourcemap support (since 0.2.0). Suitable for small to medium projects that need lightweight type utilities without heavy dependencies.

npm install ts-vista
INSTALL
IMPORT
SIG · TS-VISTA
T
ts-vista
type-stubsjavascriptv0.2.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TypeAssertion
import { TypeAssertion } from 'ts-vista'
const TypeAssertion = require('ts-vista').TypeAssertion
ESM-only package; require() will fail in Node < 12 or without transpilation.

Import and use the TypeAssertion utility to safely narrow unknown types.

import { TypeAssertion } from 'ts-vista'; // Ensure a value is of a specific type const assertString = TypeAssertion<string>((v): v is string => typeof v === 'string'); const value: unknown = 'hello'; const result = assertString(value); // type: string, throws if not console.log(result);
Debug
Known issues
gotchapackage requires TypeScript 4+ due to use of template literal types
fix
Upgrade TypeScript to version 4 or higher.
affects: >=0.1.0
breakingsourcemap support added in v0.2.0; older versions do not emit sourcemaps
fix
Update to v0.2.0+ to get sourcemap support.
affects: <0.2.0
Errors
Common errors & fixes
Cannot find module 'ts-vista' or its corresponding type declarations.
Package may not be installed, or TypeScript is not resolving types correctly.
fix
Run 'npm install ts-vista' and ensure tsconfig.json includes 'node_modules' in typeRoots.
This expression is not callable. Type 'typeof import("ts-vista")' has no call signatures.
Attempting to import the module as a default export using require() in a CommonJS context.
fix
Use proper ESM import syntax: import { ... } from 'ts-vista'.
Upgrade
Version history
0.2.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
30
OpenAI (training)
1
Resources
ts-vista — npm install ts-vista · libregistry