cosmetics
This commit is contained in:
5
bookshop/@cds-models/_/index.js
Normal file
5
bookshop/@cds-models/_/index.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// This is an automatically generated file. Please do not change its contents manually!
|
||||
const cds = require('@sap/cds')
|
||||
const csn = cds.entities('_')
|
||||
// actions
|
||||
// enums
|
||||
30
bookshop/@cds-models/_/index.ts
Normal file
30
bookshop/@cds-models/_/index.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
// This is an automatically generated file. Please do not change its contents manually!
|
||||
|
||||
export namespace Association {
|
||||
export type to <T> = T;
|
||||
export namespace to {
|
||||
export type many <T extends readonly any[]> = T;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace Composition {
|
||||
export type of <T> = T;
|
||||
export namespace of {
|
||||
export type many <T extends readonly any[]> = T;
|
||||
}
|
||||
}
|
||||
|
||||
export class Entity {
|
||||
static data<T extends Entity> (this:T, input:Object) : T {
|
||||
return {} as T // mock
|
||||
}
|
||||
}
|
||||
|
||||
export type EntitySet<T> = T[] & {
|
||||
data (input:object[]) : T[]
|
||||
data (input:object) : T
|
||||
};
|
||||
|
||||
export type DeepRequired<T> = {
|
||||
[K in keyof T]: DeepRequired<T[K]>
|
||||
} & Required<T>;
|
||||
Reference in New Issue
Block a user