1.3.1 • Published 6 months ago
@culur/types v1.3.1
@culur/types
A collection of essential TypeScript types.
✨ Features
| Name | Type | Description |
|---|---|---|
defineObject | function | Define the actual object. |
entries | function | Object.entries() functions with types from type-fest. |
keys | function | Object.keys() function with types from type-fest. |
PackageJson | type | PackageJson 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/typesIf 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.4
6 months ago
1.2.3
7 months ago
1.3.1
6 months ago
1.2.2
9 months ago
1.3.0
6 months ago
1.2.1
11 months ago
1.2.0
1 year ago
1.1.0
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
0.0.0-dev-20240527064403
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