feat: enhance type definitions and import structure across modules
This commit is contained in:
12
lib/shared/types/index.d.ts
vendored
12
lib/shared/types/index.d.ts
vendored
@@ -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']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user