@ws-ui/shared 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -209,15 +209,11 @@ declare namespace datasources {
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
interface ICreateDataSourceCommon {
|
|
213
|
-
|
|
214
|
-
initialValue
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
schema?: {
|
|
218
|
-
type: string;
|
|
219
|
-
properties: { name: string; type: string; initialValue: any }[];
|
|
220
|
-
};
|
|
212
|
+
interface ICreateDataSourceScalar extends ICreateDataSourceCommon {
|
|
213
|
+
type: 'scalar';
|
|
214
|
+
initialValue?: string | boolean | number | any[] | object | null;
|
|
215
|
+
dataType: TJSType;
|
|
216
|
+
from?: string;
|
|
221
217
|
}
|
|
222
218
|
|
|
223
219
|
interface ICreateDataSourceArray extends ICreateDataSourceCommon {
|
package/dist/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getDatasourceId(def?: Pick<datasources.ICreateDataSource, 'id' | 'namespace'>):
|
|
1
|
+
export declare function getDatasourceId(def?: Pick<datasources.ICreateDataSource, 'id' | 'namespace'>): string;
|
|
2
2
|
/**
|
|
3
3
|
* checks if the attribute is a simple attribute.
|
|
4
4
|
*
|