{"id":18869,"library":"ts-vista","title":"ts-vista","description":"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.","status":"active","version":"0.2.3","language":"javascript","source_language":"en","source_url":"https://github.com/alpheusday/ts-vista","tags":["javascript","type","types","vista","enhance","base","basic","ts","typescript"],"install":[{"cmd":"npm install ts-vista","lang":"bash","label":"npm"},{"cmd":"yarn add ts-vista","lang":"bash","label":"yarn"},{"cmd":"pnpm add ts-vista","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only package; require() will fail in Node < 12 or without transpilation.","wrong":"const TypeAssertion = require('ts-vista').TypeAssertion","symbol":"TypeAssertion","correct":"import { TypeAssertion } from 'ts-vista'"}],"quickstart":{"code":"import { TypeAssertion } from 'ts-vista';\n\n// Ensure a value is of a specific type\nconst assertString = TypeAssertion<string>((v): v is string => typeof v === 'string');\nconst value: unknown = 'hello';\nconst result = assertString(value); // type: string, throws if not\nconsole.log(result);","lang":"typescript","description":"Import and use the TypeAssertion utility to safely narrow unknown types."},"warnings":[{"fix":"Upgrade TypeScript to version 4 or higher.","message":"package requires TypeScript 4+ due to use of template literal types","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Update to v0.2.0+ to get sourcemap support.","message":"sourcemap support added in v0.2.0; older versions do not emit sourcemaps","severity":"breaking","affected_versions":"<0.2.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install ts-vista' and ensure tsconfig.json includes 'node_modules' in typeRoots.","cause":"Package may not be installed, or TypeScript is not resolving types correctly.","error":"Cannot find module 'ts-vista' or its corresponding type declarations."},{"fix":"Use proper ESM import syntax: import { ... } from 'ts-vista'.","cause":"Attempting to import the module as a default export using require() in a CommonJS context.","error":"This expression is not callable. Type 'typeof import(\"ts-vista\")' has no call signatures."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}