feat: enhance type definitions and import structure across modules
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import { parseQuery, stringifyQuery } from '@/core/serializer/query-serializer'
|
||||
import { parseUrl } from '@/core/serializer/url-serializer'
|
||||
import { deepClone } from '@/shared/helpers/deep-clone'
|
||||
import { parseUrl } from './serializer/url-serializer'
|
||||
import type {
|
||||
FLuentUrlPlainObject,
|
||||
FluentUrlConfig,
|
||||
QuerySerializer,
|
||||
} from '@/shared/types'
|
||||
|
||||
export function normalizeConfig(
|
||||
config?: Partial<FluentUrlConfig>,
|
||||
|
||||
@@ -4,8 +4,13 @@ import {
|
||||
normalizeConfig,
|
||||
normalizeOptions,
|
||||
} from '@/core/config-defaults'
|
||||
import { stringifyUrl } from '@/core/serializer/url-serializer'
|
||||
import { deepClone } from '@/shared/helpers/deep-clone'
|
||||
import { stringifyUrl } from './serializer/url-serializer'
|
||||
import type {
|
||||
FLuentUrlPlainObject,
|
||||
FluentUrlConfig,
|
||||
QueriesPlainObject,
|
||||
} from '@/shared/types'
|
||||
|
||||
export class FluentUrl {
|
||||
private config: FluentUrlConfig
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import type { QuerySerializer } from '@/shared/types'
|
||||
|
||||
export const parseQuery: QuerySerializer['parseQuery'] = () => {
|
||||
throw new Error('Not implemented')
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import type { UrlSerializer } from '@/shared/types'
|
||||
|
||||
export const parseUrl: UrlSerializer['parseUrl'] = () => {
|
||||
throw new Error('Not implemented')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user