From b55a86952b06dd5558961e9c43d2e71974fa1ae3 Mon Sep 17 00:00:00 2001 From: Piotr Kulpinski Date: Fri, 12 Apr 2024 15:27:27 +0200 Subject: [PATCH] clean up index file --- package.json | 2 +- src/index.ts | 39 ++++++++++++++++++--------------------- 2 files changed, 19 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index cef6f71..86584b5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@curiousleaf/utils", "description": "A lightweight set of utilities", - "version": "1.0.22", + "version": "1.0.23", "license": "MIT", "type": "module", "author": { diff --git a/src/index.ts b/src/index.ts index 47a59a3..25797fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,22 @@ -export type WithOptional = Pick, Key> & Omit +// External exports +export * from "scule" + +// Internal exports +export * from "./colors/colors" +export * from "./errors/errors" +export * from "./events/events" +export * from "./format/format" +export * from "./helpers/helpers" +export * from "./http/http" +export * from "./numbers/numbers" +export * from "./objects/objects" +export * from "./params/params" +export * from "./parsers/parsers" +export * from "./random/random" +export * from "./time/time" -export type WithRequired = Type & { - [Prop in Key]-?: Type[Prop] -} +export type WithOptional = Pick, Key> & Omit +export type WithRequired = Type & { [Prop in Key]-?: Type[Prop] } export type DeepIdx = K extends "" ? T @@ -23,20 +37,3 @@ export type ValidatePath = K extends "" ? `${K0}.${ValidatePath}` : Extract : Extract - -// External exports -export * from "scule" - -// Internal exports -export * from "./colors/colors" -export * from "./errors/errors" -export * from "./events/events" -export * from "./format/format" -export * from "./helpers/helpers" -export * from "./http/http" -export * from "./numbers/numbers" -export * from "./objects/objects" -export * from "./params/params" -export * from "./parsers/parsers" -export * from "./random/random" -export * from "./time/time"