feat: add type definitions for FluentUrl and related serializers

This commit is contained in:
2026-02-22 18:02:50 -05:00
parent c22c6309b8
commit 80065fee88
4 changed files with 3 additions and 38 deletions

View File

@@ -26,6 +26,6 @@ export interface UrlSerializer {
}
export interface FluentUrlConfig {
parseQuery: Serializer['parseQuery']
stringifyQuery: Serializer['stringifyQuery']
parseQuery: QuerySerializer['parseQuery']
stringifyQuery: QuerySerializer['stringifyQuery']
}

View File

@@ -19,7 +19,6 @@
"tsc-alias": "1.8.16",
"tsx": "4.21.0",
"typescript": "5.9.3",
"typescript-transform-paths": "3.5.6",
"vitest": "4.0.18"
}
}

21
pnpm-lock.yaml generated
View File

@@ -26,9 +26,6 @@ importers:
typescript:
specifier: 5.9.3
version: 5.9.3
typescript-transform-paths:
specifier: ^3.5.6
version: 3.5.6(typescript@5.9.3)
vitest:
specifier: 4.0.18
version: 4.0.18(@types/node@25.3.0)(tsx@4.21.0)
@@ -583,10 +580,6 @@ packages:
resolution: {integrity: sha512-+G4CpNBxa5MprY+04MbgOw1v7So6n5JY166pFi9KfYwT78fxScCeSNQSNzp6dpPSW2rONOps6Ocam1wFhCgoVw==}
engines: {node: 18 || 20 || >=22}
minimatch@9.0.6:
resolution: {integrity: sha512-kQAVowdR33euIqeA0+VZTDqU+qo1IeVY+hrKYtZMio3Pg0P0vuh/kwRylLUddJhB6pf3q/botcOvRtx4IN1wqQ==}
engines: {node: '>=16 || 14 >=14.17'}
minipass@7.1.3:
resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}
engines: {node: '>=16 || 14 >=14.17'}
@@ -717,11 +710,6 @@ packages:
engines: {node: '>=18.0.0'}
hasBin: true
typescript-transform-paths@3.5.6:
resolution: {integrity: sha512-3eQTG6Ogt+pgPEh45uX2s9OwcfAVjWnyNO+osjYcOqYaWDVMIFUkqW8e0O1cOaVwdMqQFQf6alDT+76xmeS2Ag==}
peerDependencies:
typescript: '>=3.6.5'
typescript@5.9.3:
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
engines: {node: '>=14.17'}
@@ -1222,10 +1210,6 @@ snapshots:
dependencies:
brace-expansion: 5.0.2
minimatch@9.0.6:
dependencies:
brace-expansion: 5.0.2
minipass@7.1.3: {}
mylas@2.1.14: {}
@@ -1357,11 +1341,6 @@ snapshots:
optionalDependencies:
fsevents: 2.3.3
typescript-transform-paths@3.5.6(typescript@5.9.3):
dependencies:
minimatch: 9.0.6
typescript: 5.9.3
typescript@5.9.3: {}
undici-types@7.18.2: {}

View File

@@ -22,20 +22,7 @@
"@/*": [
"./lib/*"
]
},
"plugins": [
{
"transform": "typescript-transform-paths"
},
{
"transform": "typescript-transform-paths",
"afterDeclarations": true
}
],
"typeRoots": [
"lib/shared/types",
"node_modules/@types"
]
}
},
"include": [
"lib/**/*",