blob: 049cfb8b7038a6d868f33080aeec53cb62db5229 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { injectable } from "tsyringe";
import Properties from "../../shared/settings/Properties";
type Property = {
name: string;
type: 'string' | 'boolean' | 'number';
}
@injectable()
export default class PropertyCompletionUseCase {
async getProperties(): Promise<Property[]> {
return Properties.defs().map(def => ({
name: def.name,
type: def.type,
}));
}
}
|