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:
荣彬 2020-11-04 08:44:41 +08:00
commit c94989137a
4 changed files with 7 additions and 4 deletions

View File

@ -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"
},

View File

@ -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"
},

View File

@ -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"
},

View File

@ -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;