open-index/open-npm huggingface dataset:
npm package: @imchenmm/test-lib
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.1.0.
Latest version: 1.0.6-0

# TestLib

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.1.0.

## Code scaffolding

Run `ng generate component component-name --project test-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project test-lib`.
> Note: Don't forget to add `--project test-lib` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build test-lib` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build test-lib`, go to the dist folder `cd dist/test-lib` and run `npm publish`.

## Running unit tests

Run `ng test test-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @imchhh/zod-class
Description: [![](https://badgen.net/bundlephobia/minzip/@imchhh/zod-class)](https://bundlephobia.com/result?p=@imchhh/zod-class) ![](https://badgen.net/npm/types/@imchhh/zod-class)
Latest version: 0.0.7

# zod-class

[![](https://badgen.net/bundlephobia/minzip/@imchhh/zod-class)](https://bundlephobia.com/result?p=@imchhh/zod-class)
![](https://badgen.net/npm/types/@imchhh/zod-class)

## Acknowledgements

This library was heavily inspired by the [zod-class](https://github.com/sam-goodwin/zod-class) which made by **[@sam-goodwin](https://github.com/sam-goodwin)**. I took his implementation and just rewrote it into the code I needed for my purposes.

## Installation

```bash
pnpm add @imchhh/zod-class
```

## Example

```ts
import { ZodClass } from '@imchhh/zod-class';
import { z } from 'zod';

declare const unknownInput: unknown;

class User extends ZodClass({
  name: z.string(),
  age: z.number(),
}) {}

const user = User.parse(unknownInput);
```

## License

MIT