https://github.com/alpheustangs/ts-vista
An utility to enhance TypeScript
https://github.com/alpheustangs/ts-vista
enhance enhancement javascript node ts types typescript
Last synced: 5 months ago
JSON representation
An utility to enhance TypeScript
- Host: GitHub
- URL: https://github.com/alpheustangs/ts-vista
- Owner: alpheustangs
- License: mit
- Created: 2024-11-19T13:32:51.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-28T04:34:02.000Z (5 months ago)
- Last Synced: 2024-11-28T05:24:46.022Z (5 months ago)
- Topics: enhance, enhancement, javascript, node, ts, types, typescript
- Language: TypeScript
- Homepage: https://github.com/alpheustangs/ts-vista/blob/main/docs/README.md
- Size: 173 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TypeScript Vista
An utility to enhance TypeScript.
## Installation
Install this package as a dependency in the project:
```sh
# npm
npm i ts-vista# Yarn
yarn add ts-vista# pnpm
pnpm add ts-vista
```## Quick Start
Omit keys from an object:
```ts
import type { Omit } from "ts-vista";import { omit } from "ts-vista";
type T = {
a: string;
b: number;
c: boolean;
};const o1: T = {
a: "a",
b: 1,
c: true,
};// o2 = { b: 1, c: true }
const o2: Omit = omit(o1, ["a"]);
```## Documentation
For more information, please refer to the [documentation](./docs/README.md).
## License
This project is licensed under the terms of the MIT license.