Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/halvaradop/ts-utility-types
Collection of custom utility types and functions for TypeScript to simplify development
https://github.com/halvaradop/ts-utility-types
develpment interfaces types typescript utilities utility-types
Last synced: 5 days ago
JSON representation
Collection of custom utility types and functions for TypeScript to simplify development
- Host: GitHub
- URL: https://github.com/halvaradop/ts-utility-types
- Owner: halvaradop
- License: mit
- Created: 2024-07-11T21:29:09.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-10-30T03:28:01.000Z (16 days ago)
- Last Synced: 2024-10-30T06:21:09.541Z (16 days ago)
- Topics: develpment, interfaces, types, typescript, utilities, utility-types
- Language: TypeScript
- Homepage:
- Size: 213 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# @halvaradop/ts-utility-types
This package provides a collection of utility types designed to enhance productivity and improve the readability of your TypeScript code. It simplifies common tasks and promotes cleaner code structure.
## Installation
To install @halvaradop/ts-utility-types as a dependency in your project, run the following command:
```bash
npm i --save-dev @halvaradop/ts-utility-types
// or
npm i -D @halvaradop/ts-utility-types```
## Usage
Once installed, you can import the types from your typescript files
```ts
import { Merge } from "@halvaradop/ts-utility-types";interface Config {
storePaths: string[];
hooks: unknown[];
}interface AppStore {
path: string;
hooks: ArgsFunction[];
}
// Expect: { storePaths: string[], path: string, hooks: ArgsFunction[] }
export type Store = Merge;
```## TypeHero Challenges
This repository offers solutions to challenges found on [TypeHero](https://typehero.dev/), constructed entirely from scratch without leveraging built-in TypeScript utility types
## Contributing
We welcome contributions to `@halvaradop/ts-utility-types`! If you have an idea for a new type or find an improvement to an existing one, please feel free to open an issue or create a pull request. We offer a guide on how to contribute to the project and the necessary steps to do so. Here's how you can contribute, Read our [Contribuing Guideline](https://github.com/halvaradop/.github/blob/master/.github/CONTRIBUTING.md).
## Code of conduct
Please be aware that this project has a code of conduct, and we expect all contributors to follow these guidelines in their interactions. For more information, please read our [Code of Conduct](https://github.com/halvaradop/.github/blob/master/.github/CODE_OF_CONDUCT.md).