feat: add type definitions for FluentUrl and related serializers
This commit is contained in:
@@ -26,6 +26,6 @@ export interface UrlSerializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface FluentUrlConfig {
|
export interface FluentUrlConfig {
|
||||||
parseQuery: Serializer['parseQuery']
|
parseQuery: QuerySerializer['parseQuery']
|
||||||
stringifyQuery: Serializer['stringifyQuery']
|
stringifyQuery: QuerySerializer['stringifyQuery']
|
||||||
}
|
}
|
||||||
@@ -19,7 +19,6 @@
|
|||||||
"tsc-alias": "1.8.16",
|
"tsc-alias": "1.8.16",
|
||||||
"tsx": "4.21.0",
|
"tsx": "4.21.0",
|
||||||
"typescript": "5.9.3",
|
"typescript": "5.9.3",
|
||||||
"typescript-transform-paths": "3.5.6",
|
|
||||||
"vitest": "4.0.18"
|
"vitest": "4.0.18"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
21
pnpm-lock.yaml
generated
21
pnpm-lock.yaml
generated
@@ -26,9 +26,6 @@ importers:
|
|||||||
typescript:
|
typescript:
|
||||||
specifier: 5.9.3
|
specifier: 5.9.3
|
||||||
version: 5.9.3
|
version: 5.9.3
|
||||||
typescript-transform-paths:
|
|
||||||
specifier: ^3.5.6
|
|
||||||
version: 3.5.6(typescript@5.9.3)
|
|
||||||
vitest:
|
vitest:
|
||||||
specifier: 4.0.18
|
specifier: 4.0.18
|
||||||
version: 4.0.18(@types/node@25.3.0)(tsx@4.21.0)
|
version: 4.0.18(@types/node@25.3.0)(tsx@4.21.0)
|
||||||
@@ -583,10 +580,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-+G4CpNBxa5MprY+04MbgOw1v7So6n5JY166pFi9KfYwT78fxScCeSNQSNzp6dpPSW2rONOps6Ocam1wFhCgoVw==}
|
resolution: {integrity: sha512-+G4CpNBxa5MprY+04MbgOw1v7So6n5JY166pFi9KfYwT78fxScCeSNQSNzp6dpPSW2rONOps6Ocam1wFhCgoVw==}
|
||||||
engines: {node: 18 || 20 || >=22}
|
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:
|
minipass@7.1.3:
|
||||||
resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}
|
resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}
|
||||||
engines: {node: '>=16 || 14 >=14.17'}
|
engines: {node: '>=16 || 14 >=14.17'}
|
||||||
@@ -717,11 +710,6 @@ packages:
|
|||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
typescript-transform-paths@3.5.6:
|
|
||||||
resolution: {integrity: sha512-3eQTG6Ogt+pgPEh45uX2s9OwcfAVjWnyNO+osjYcOqYaWDVMIFUkqW8e0O1cOaVwdMqQFQf6alDT+76xmeS2Ag==}
|
|
||||||
peerDependencies:
|
|
||||||
typescript: '>=3.6.5'
|
|
||||||
|
|
||||||
typescript@5.9.3:
|
typescript@5.9.3:
|
||||||
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
|
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
|
||||||
engines: {node: '>=14.17'}
|
engines: {node: '>=14.17'}
|
||||||
@@ -1222,10 +1210,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
brace-expansion: 5.0.2
|
brace-expansion: 5.0.2
|
||||||
|
|
||||||
minimatch@9.0.6:
|
|
||||||
dependencies:
|
|
||||||
brace-expansion: 5.0.2
|
|
||||||
|
|
||||||
minipass@7.1.3: {}
|
minipass@7.1.3: {}
|
||||||
|
|
||||||
mylas@2.1.14: {}
|
mylas@2.1.14: {}
|
||||||
@@ -1357,11 +1341,6 @@ snapshots:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
fsevents: 2.3.3
|
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: {}
|
typescript@5.9.3: {}
|
||||||
|
|
||||||
undici-types@7.18.2: {}
|
undici-types@7.18.2: {}
|
||||||
|
|||||||
@@ -22,20 +22,7 @@
|
|||||||
"@/*": [
|
"@/*": [
|
||||||
"./lib/*"
|
"./lib/*"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"plugins": [
|
|
||||||
{
|
|
||||||
"transform": "typescript-transform-paths"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"transform": "typescript-transform-paths",
|
|
||||||
"afterDeclarations": true
|
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"typeRoots": [
|
|
||||||
"lib/shared/types",
|
|
||||||
"node_modules/@types"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"lib/**/*",
|
"lib/**/*",
|
||||||
|
|||||||
Reference in New Issue
Block a user