Как корректно описать функцию в typescript
type Prop = {
default?: any;
get?: Function;
set?: Function;
}
type Model = {
is: string;
[key: string]: any;
}
function convertModel(model: Model, cls) {
const obj = Object.create(null);
for (const p in model) {
const …
Свежие комментарии