mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 21:20:28 +00:00
fix: lowcode types update
This commit is contained in:
parent
cf3a61a8e8
commit
af5ef187aa
@ -16,7 +16,7 @@
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-types": "^0.8.13",
|
||||
"@ali/lowcode-types": "^1.0.13-alpha.2",
|
||||
"query-string": "^6.13.1",
|
||||
"typescript": "^3.9.7"
|
||||
},
|
||||
|
||||
@ -1,7 +1,10 @@
|
||||
import qs from 'query-string';
|
||||
import { UrlParamsHandler } from '@ali/lowcode-types';
|
||||
|
||||
export function createUrlParamsHandler<T = unknown>(searchString: string | T = ''): UrlParamsHandler<T> {
|
||||
export function createUrlParamsHandler<T = unknown>(
|
||||
searchString: string | T = '',
|
||||
): UrlParamsHandler<T> {
|
||||
// eslint-disable-next-line space-before-function-paren
|
||||
return async function(): Promise<T> {
|
||||
if (typeof searchString === 'string') {
|
||||
const params = (qs.parse(searchString) as unknown) as T;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user