1.2.0 • Published 10 months ago

@culur/types v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@culur/types

NPM Version NPM Download NPM License

CodeFactor Codecov Build and release

A collection of essential TypeScript types.

✨ Features

NameTypeDescription
defineObjectfunctionDefine the actual object.
entriesfunctionObject.entries() functions with types from type-fest.
keysfunctionObject.keys() function with types from type-fest.
PackageJsontypePackageJson from type-fest and extends some custom type

💿 Installation

Add @culur/types dependency to your project.

# Using npm
npm install @culur/types

# Using pnpm
pnpm install @culur/types

# Using yarn
yarn add @culur/types

If you don't use any function in this lib, you can install it as devDependencies.

📖 Usage

import { defineObject } from '@culur/types';

const object = defineObject<{
  foo?: string | number;
  bar?: boolean;
}>()({
  foo: 'foo',
});
// => { foo: string }

🗃️ Changelog

See CHANGELOG for more information on what has changed recently.

🔒 License

See LICENSE for license rights and limitations (MIT).

1.2.0

10 months ago

1.1.0

10 months ago

1.0.6

10 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago