Skip to content

Commit

Permalink
clean up index file
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkulpinski committed Apr 12, 2024
1 parent e6019e7 commit b55a869
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
39 changes: 18 additions & 21 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
export type WithOptional<Type, Key extends keyof Type> = Pick<Partial<Type>, Key> & Omit<Type, Key>
// 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, Key extends keyof Type> = Type & {
[Prop in Key]-?: Type[Prop]
}
export type WithOptional<Type, Key extends keyof Type> = Pick<Partial<Type>, Key> & Omit<Type, Key>
export type WithRequired<Type, Key extends keyof Type> = Type & { [Prop in Key]-?: Type[Prop] }

export type DeepIdx<T, K extends string> = K extends ""
? T
Expand All @@ -23,20 +37,3 @@ export type ValidatePath<T, K extends string> = K extends ""
? `${K0}.${ValidatePath<T[K0], KR>}`
: Extract<keyof T, string>
: Extract<keyof T, string>

// 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"

0 comments on commit b55a869

Please sign in to comment.