feat: enhance type definitions and import structure across modules

This commit is contained in:
2026-02-22 17:47:55 -05:00
parent 0ce2d8a512
commit c22c6309b8
9 changed files with 48 additions and 13 deletions

View File

@@ -1,8 +1,6 @@
/** biome-ignore-all lint/correctness/noUnusedVariables: <> */
export type QueriesPlainObject = Record<string, any>
type QueriesPlainObject = Record<string, any>
interface FLuentUrlPlainObject {
export interface FLuentUrlPlainObject {
protocol?: string
hostname?: string
paths: string[]
@@ -11,12 +9,12 @@ interface FLuentUrlPlainObject {
queries: QueriesPlainObject
}
interface QuerySerializer {
export interface QuerySerializer {
parseQuery: (str: string) => QueriesPlainObject
stringifyQuery: (obj: QueriesPlainObject) => string
}
interface UrlSerializer {
export interface UrlSerializer {
parseUrl: (args: {
str: string
parseQuery?: QuerySerializer['parseQuery']
@@ -27,7 +25,7 @@ interface UrlSerializer {
}) => string
}
interface FluentUrlConfig {
export interface FluentUrlConfig {
parseQuery: Serializer['parseQuery']
stringifyQuery: Serializer['stringifyQuery']
}