{"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,"search_vec":"'0.2.0':48 '0.2.3':20 'addit':11 'base':68 'basic':36,69 'cadenc':23 'current':16 'depend':62 'differenti':33 'earli':30 'early-stag':29 'enhanc':7,38,67 'focus':41 'heavi':61 'javascript':63 'lightweight':57 'medium':53 'need':56 'offer':35 'project':54 'provid':10 'releas':22 'simplic':43 'sinc':47 'small':51 'sourcemap':45 'sporad':25 'stabl':17 'stage':31 'suitabl':49 'support':46 'transform':15 'ts':2,70 'ts-vista':1 'type':12,37,58,64,65 'typescript':8,71 'util':5,13,59 'version':18 'vista':3,66 'without':60","created_at":"2026-04-25T07:40:33.410097+00:00","updated_at":"2026-04-25T07:40:33.410097+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/alpheusday/ts-vista","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-vista","openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}