mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-01 05:30:40 +00:00
Merge branch 'feat/datasource-engine' into 'release/1.0.0'
Feat/datasource engine update lowcode types version See merge request !1033918
This commit is contained in:
commit
c94989137a
@ -16,7 +16,7 @@
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-types": "^1.0.10",
|
||||
"@ali/lowcode-types": "^1.0.13-alpha.2",
|
||||
"@ali/mirror-io-client-mopen": "1.0.0-beta.16",
|
||||
"typescript": "^3.9.7"
|
||||
},
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ali/lowcode-types": "^1.0.10",
|
||||
"@ali/lowcode-types": "^1.0.13-alpha.2",
|
||||
"@ali/mirror-io-client-universal-mtop": "1.0.0-beta.16",
|
||||
"typescript": "^3.9.7"
|
||||
},
|
||||
|
||||
@ -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